mirror of
https://github.com/k0shk0sh/FastHub.git
synced 2026-02-01 15:56:14 +00:00
design for landscape and tablets.
This commit is contained in:
parent
3fd6c597c0
commit
f27c88279a
@ -98,7 +98,7 @@ dependencies {
|
||||
compile 'de.hdodenhof:circleimageview:2.1.0'
|
||||
compile 'com.jakewharton:butterknife:8.4.0'
|
||||
compile 'frankiesardo:icepick:3.1.0'
|
||||
compile 'it.sephiroth.android.library.bottomnavigation:bottom-navigation:1.0.7'
|
||||
compile 'it.sephiroth.android.library.bottomnavigation:bottom-navigation:2.0.1-rc1'
|
||||
compile 'io.reactivex:rxandroid:1.2.1'
|
||||
compile 'io.reactivex:rxjava:1.2.2'
|
||||
compile "com.squareup.retrofit2:retrofit:${retrofit}"
|
||||
|
||||
@ -16,4 +16,11 @@ public class GitHubErrorResponse {
|
||||
private String documentation_url;
|
||||
private List<GistHubErrorsModel> errors;
|
||||
|
||||
@Override public String toString() {
|
||||
return "GitHubErrorResponse{" +
|
||||
"message='" + message + '\'' +
|
||||
", documentation_url='" + documentation_url + '\'' +
|
||||
", errors=" + errors +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
@ -29,8 +29,6 @@ import static android.content.Intent.CATEGORY_BROWSABLE;
|
||||
*/
|
||||
|
||||
public class SchemeParser {
|
||||
|
||||
|
||||
private static final String HOST_DEFAULT = "github.com";
|
||||
private static final String HOST_GISTS = "gist.github.com";
|
||||
private static final String PROTOCOL_HTTPS = "https";
|
||||
|
||||
@ -95,11 +95,11 @@ class MainPresenter extends BasePresenter<MainMvp.View> implements MainMvp.Prese
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override public void onMenuItemSelect(@IdRes int id, int position) {
|
||||
@Override public void onMenuItemSelect(@IdRes int id, int position, boolean fromUser) {
|
||||
if (getView() != null) {
|
||||
getView().onNavigationChanged(position);
|
||||
}
|
||||
}
|
||||
|
||||
@Override public void onMenuItemReselect(@IdRes int id, int position) {}
|
||||
@Override public void onMenuItemReselect(@IdRes int id, int position, boolean fromUser) {}
|
||||
}
|
||||
|
||||
@ -271,11 +271,11 @@ class RepoPagerPresenter extends BasePresenter<RepoPagerMvp.View> implements Rep
|
||||
toAdd.onHiddenChanged(false);
|
||||
}
|
||||
|
||||
@Override public void onMenuItemSelect(@IdRes int id, int position) {
|
||||
@Override public void onMenuItemSelect(@IdRes int id, int position, boolean fromUser) {
|
||||
if (getView() != null && isViewAttached()) {
|
||||
getView().onNavigationChanged(position);
|
||||
}
|
||||
}
|
||||
|
||||
@Override public void onMenuItemReselect(@IdRes int id, int position) {}
|
||||
@Override public void onMenuItemReselect(@IdRes int id, int position, boolean fromUser) {}
|
||||
}
|
||||
|
||||
@ -0,0 +1,52 @@
|
||||
package com.fastaccess.ui.widgets;
|
||||
|
||||
import android.content.Context;
|
||||
import android.support.design.widget.AppBarLayout;
|
||||
import android.support.design.widget.CoordinatorLayout;
|
||||
import android.support.v7.widget.Toolbar;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
|
||||
import it.sephiroth.android.library.bottomnavigation.BottomNavigation;
|
||||
import it.sephiroth.android.library.bottomnavigation.VerticalScrollingBehavior;
|
||||
|
||||
public class TabletBehavior extends VerticalScrollingBehavior<BottomNavigation> {
|
||||
|
||||
public TabletBehavior(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
}
|
||||
|
||||
public void setLayoutValues(int bottomNavWidth, int topInset, boolean translucentStatus) {
|
||||
boolean translucentStatus1 = translucentStatus;
|
||||
int topInset1 = 0;
|
||||
}
|
||||
|
||||
public boolean layoutDependsOn(CoordinatorLayout parent, BottomNavigation child, View dependency) {
|
||||
return AppBarLayout.class.isInstance(dependency) || Toolbar.class.isInstance(dependency);
|
||||
}
|
||||
|
||||
public boolean onDependentViewChanged(CoordinatorLayout parent, BottomNavigation child, View dependency) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public void onDependentViewRemoved(CoordinatorLayout parent, BottomNavigation child, View dependency) {
|
||||
super.onDependentViewRemoved(parent, child, dependency);
|
||||
}
|
||||
|
||||
public boolean onLayoutChild(CoordinatorLayout parent, BottomNavigation child, int layoutDirection) {
|
||||
return super.onLayoutChild(parent, child, layoutDirection);
|
||||
}
|
||||
|
||||
public void onNestedVerticalOverScroll(CoordinatorLayout coordinatorLayout, BottomNavigation child, int direction, int currentOverScroll, int
|
||||
totalOverScroll) {
|
||||
}
|
||||
|
||||
public void onDirectionNestedPreScroll(CoordinatorLayout coordinatorLayout, BottomNavigation child, View target, int dx, int dy, int[]
|
||||
consumed, int scrollDirection) {
|
||||
}
|
||||
|
||||
protected boolean onNestedDirectionFling(CoordinatorLayout coordinatorLayout, BottomNavigation child, View target, float velocityX, float
|
||||
velocityY, int scrollDirection) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/fab"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
android:src="@drawable/ic_add"
|
||||
android:tint="@color/white"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
</android.support.design.widget.FloatingActionButton>
|
||||
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout
|
||||
android:id="@+id/container"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="@dimen/bbn_bottom_navigation_width"
|
||||
app:layout_behavior="@string/scroll_behavior"/>
|
||||
@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.design.widget.AppBarLayout
|
||||
android:id="@+id/appbar"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/bbn_bottom_navigation_width"
|
||||
android:background="@color/transparent"
|
||||
android:theme="@style/ToolbarStyleDark"
|
||||
app:elevation="0dp">
|
||||
|
||||
<include layout="@layout/title_header_layout"/>
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?colorPrimary"
|
||||
android:minHeight="?actionBarSize"
|
||||
app:theme="@style/ToolbarStyleDark">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:padding="@dimen/spacing_normal">
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/watchRepo"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center|end"
|
||||
android:layout_marginEnd="@dimen/spacing_xs_large"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:drawablePadding="@dimen/spacing_normal"
|
||||
android:drawableTop="@drawable/ic_eye"
|
||||
android:gravity="center"
|
||||
tools:text="100,000"/>
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/starRepo"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center|end"
|
||||
android:layout_marginEnd="@dimen/spacing_xs_large"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:drawablePadding="@dimen/spacing_normal"
|
||||
android:drawableTop="@drawable/ic_star"
|
||||
android:gravity="center"
|
||||
android:scaleType="centerCrop"
|
||||
tools:text="100,000"/>
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/forkRepo"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center|end"
|
||||
android:layout_marginEnd="@dimen/spacing_xs_large"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:drawablePadding="@dimen/spacing_normal"
|
||||
android:drawableTop="@drawable/ic_fork"
|
||||
android:gravity="center"
|
||||
tools:text="100,000"/>
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/license"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center|end"
|
||||
android:layout_marginEnd="@dimen/spacing_xs_large"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:drawablePadding="@dimen/spacing_normal"
|
||||
android:drawableTop="@drawable/ic_license"
|
||||
android:gravity="center"
|
||||
android:maxLength="6"
|
||||
android:maxLines="1"
|
||||
android:visibility="gone"
|
||||
tools:text="Apache"/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</android.support.v7.widget.Toolbar>
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<it.sephiroth.android.library.bottomnavigation.BottomNavigation
|
||||
android:id="@+id/bottomNavigation"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
app:bbn_entries="@menu/repo_bottom_nav_menu"
|
||||
app:layout_behavior="@string/custom_tablet_provider"/>
|
||||
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<it.sephiroth.android.library.bottomnavigation.BottomNavigation
|
||||
android:id="@+id/bottomNavigation"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
app:bbn_entries="@menu/bottom_nav_menu"
|
||||
app:layout_behavior="@string/custom_tablet_provider"/>
|
||||
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/fab"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
android:src="@drawable/ic_add"
|
||||
android:tint="@color/white"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
</android.support.design.widget.FloatingActionButton>
|
||||
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout
|
||||
android:id="@+id/container"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="@dimen/bbn_bottom_navigation_width"
|
||||
app:layout_behavior="@string/scroll_behavior"/>
|
||||
@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.design.widget.AppBarLayout
|
||||
android:id="@+id/appbar"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/bbn_bottom_navigation_width"
|
||||
android:background="@color/transparent"
|
||||
android:theme="@style/ToolbarStyleDark"
|
||||
app:elevation="0dp">
|
||||
|
||||
<include layout="@layout/title_header_layout"/>
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?colorPrimary"
|
||||
android:minHeight="?actionBarSize"
|
||||
app:theme="@style/ToolbarStyleDark">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:padding="@dimen/spacing_normal">
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/watchRepo"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center|end"
|
||||
android:layout_marginEnd="@dimen/spacing_xs_large"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:drawablePadding="@dimen/spacing_normal"
|
||||
android:drawableTop="@drawable/ic_eye"
|
||||
android:gravity="center"
|
||||
tools:text="100,000"/>
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/starRepo"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center|end"
|
||||
android:layout_marginEnd="@dimen/spacing_xs_large"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:drawablePadding="@dimen/spacing_normal"
|
||||
android:drawableTop="@drawable/ic_star"
|
||||
android:gravity="center"
|
||||
android:scaleType="centerCrop"
|
||||
tools:text="100,000"/>
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/forkRepo"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center|end"
|
||||
android:layout_marginEnd="@dimen/spacing_xs_large"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:drawablePadding="@dimen/spacing_normal"
|
||||
android:drawableTop="@drawable/ic_fork"
|
||||
android:gravity="center"
|
||||
tools:text="100,000"/>
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/license"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center|end"
|
||||
android:layout_marginEnd="@dimen/spacing_xs_large"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:drawablePadding="@dimen/spacing_normal"
|
||||
android:drawableTop="@drawable/ic_license"
|
||||
android:gravity="center"
|
||||
android:maxLength="6"
|
||||
android:maxLines="1"
|
||||
android:visibility="gone"
|
||||
tools:text="Apache"/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</android.support.v7.widget.Toolbar>
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<it.sephiroth.android.library.bottomnavigation.BottomNavigation
|
||||
android:id="@+id/bottomNavigation"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
app:bbn_entries="@menu/repo_bottom_nav_menu"
|
||||
app:layout_behavior="@string/custom_tablet_provider"/>
|
||||
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<it.sephiroth.android.library.bottomnavigation.BottomNavigation
|
||||
android:id="@+id/bottomNavigation"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
app:bbn_entries="@menu/bottom_nav_menu"
|
||||
app:layout_behavior="@string/custom_tablet_provider"/>
|
||||
@ -14,32 +14,13 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<include layout="@layout/appbar_elevation_dark"/>
|
||||
<include layout="@layout/appbar_start_margin"/>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_behavior="@string/scroll_behavior"/>
|
||||
<include layout="@layout/fragment_container"/>
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/fab"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
android:src="@drawable/ic_add"
|
||||
android:tint="@color/white"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible"/>
|
||||
<include layout="@layout/bottom_fab"/>
|
||||
|
||||
<it.sephiroth.android.library.bottomnavigation.BottomNavigation
|
||||
android:id="@+id/bottomNavigation"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
app:bbn_entries="@menu/bottom_nav_menu"
|
||||
app:layout_behavior="@string/bbn_phone_view_behavior"/>
|
||||
<include layout="@layout/main_bottom_navigation"/>
|
||||
|
||||
</android.support.design.widget.CoordinatorLayout>
|
||||
|
||||
|
||||
15
app/src/main/res/layouts/main_layouts/layout/bottom_fab.xml
Normal file
15
app/src/main/res/layouts/main_layouts/layout/bottom_fab.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/fab"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
android:src="@drawable/ic_add"
|
||||
android:tint="@color/white"
|
||||
android:visibility="gone"
|
||||
app:layout_behavior="@string/bbn_fab_default_behavior"
|
||||
tools:visibility="visible"/>
|
||||
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout
|
||||
android:id="@+id/container"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_behavior="@string/scroll_behavior"/>
|
||||
@ -0,0 +1,89 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.design.widget.AppBarLayout
|
||||
android:id="@+id/appbar"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/transparent"
|
||||
android:theme="@style/ToolbarStyleDark"
|
||||
app:elevation="0dp">
|
||||
|
||||
<include layout="@layout/title_header_layout"/>
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?colorPrimary"
|
||||
android:minHeight="?actionBarSize"
|
||||
app:theme="@style/ToolbarStyleDark">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:padding="@dimen/spacing_normal">
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/watchRepo"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center|end"
|
||||
android:layout_marginEnd="@dimen/spacing_xs_large"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:drawablePadding="@dimen/spacing_normal"
|
||||
android:drawableTop="@drawable/ic_eye"
|
||||
android:gravity="center"
|
||||
tools:text="100,000"/>
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/starRepo"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center|end"
|
||||
android:layout_marginEnd="@dimen/spacing_xs_large"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:drawablePadding="@dimen/spacing_normal"
|
||||
android:drawableTop="@drawable/ic_star"
|
||||
android:gravity="center"
|
||||
android:scaleType="centerCrop"
|
||||
tools:text="100,000"/>
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/forkRepo"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center|end"
|
||||
android:layout_marginEnd="@dimen/spacing_xs_large"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:drawablePadding="@dimen/spacing_normal"
|
||||
android:drawableTop="@drawable/ic_fork"
|
||||
android:gravity="center"
|
||||
tools:text="100,000"/>
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/license"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center|end"
|
||||
android:layout_marginEnd="@dimen/spacing_xs_large"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:drawablePadding="@dimen/spacing_normal"
|
||||
android:drawableTop="@drawable/ic_license"
|
||||
android:gravity="center"
|
||||
android:maxLength="6"
|
||||
android:maxLines="1"
|
||||
android:visibility="gone"
|
||||
tools:text="Apache"/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</android.support.v7.widget.Toolbar>
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<it.sephiroth.android.library.bottomnavigation.BottomNavigation
|
||||
android:id="@+id/bottomNavigation"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
app:bbn_entries="@menu/repo_bottom_nav_menu"
|
||||
app:layout_behavior="@string/bbn_phone_view_behavior"/>
|
||||
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<it.sephiroth.android.library.bottomnavigation.BottomNavigation
|
||||
android:id="@+id/bottomNavigation"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
app:bbn_entries="@menu/bottom_nav_menu"
|
||||
app:layout_behavior="@string/bbn_phone_view_behavior"/>
|
||||
@ -2,121 +2,15 @@
|
||||
<android.support.design.widget.CoordinatorLayout
|
||||
android:id="@+id/coordinatorLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<android.support.design.widget.AppBarLayout
|
||||
android:id="@+id/appbar"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/transparent"
|
||||
android:theme="@style/ToolbarStyleDark"
|
||||
app:elevation="0dp">
|
||||
<include layout="@layout/header_title_with_toolbar"/>
|
||||
|
||||
<include layout="@layout/title_header_layout"/>
|
||||
<include layout="@layout/fragment_container"/>
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?colorPrimary"
|
||||
android:minHeight="?actionBarSize"
|
||||
app:theme="@style/ToolbarStyleDark">
|
||||
<include layout="@layout/bottom_fab"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:padding="@dimen/spacing_normal">
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/watchRepo"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center|end"
|
||||
android:layout_marginEnd="@dimen/spacing_xs_large"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:drawablePadding="@dimen/spacing_normal"
|
||||
android:drawableTop="@drawable/ic_eye"
|
||||
android:gravity="center"
|
||||
tools:text="100,000"/>
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/starRepo"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center|end"
|
||||
android:layout_marginEnd="@dimen/spacing_xs_large"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:drawablePadding="@dimen/spacing_normal"
|
||||
android:drawableTop="@drawable/ic_star"
|
||||
android:gravity="center"
|
||||
android:scaleType="centerCrop"
|
||||
tools:text="100,000"/>
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/forkRepo"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center|end"
|
||||
android:layout_marginEnd="@dimen/spacing_xs_large"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:drawablePadding="@dimen/spacing_normal"
|
||||
android:drawableTop="@drawable/ic_fork"
|
||||
android:gravity="center"
|
||||
tools:text="100,000"/>
|
||||
|
||||
<com.fastaccess.ui.widgets.FontTextView
|
||||
android:id="@+id/license"
|
||||
style="@style/TextAppearance.AppCompat.Small"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center|end"
|
||||
android:layout_marginEnd="@dimen/spacing_xs_large"
|
||||
android:background="?selectableItemBackgroundBorderless"
|
||||
android:drawablePadding="@dimen/spacing_normal"
|
||||
android:drawableTop="@drawable/ic_license"
|
||||
android:gravity="center"
|
||||
android:maxLength="6"
|
||||
android:maxLines="1"
|
||||
android:visibility="gone"
|
||||
tools:text="Apache"/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</android.support.v7.widget.Toolbar>
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_behavior="@string/scroll_behavior"/>
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/fab"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end|bottom"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
android:src="@drawable/ic_add"
|
||||
android:tint="@color/white"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<it.sephiroth.android.library.bottomnavigation.BottomNavigation
|
||||
android:id="@+id/bottomNavigation"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="bottom"
|
||||
app:bbn_entries="@menu/repo_bottom_nav_menu"
|
||||
app:layout_behavior="@string/bbn_phone_view_behavior"/>
|
||||
<include layout="@layout/issues_bottom_navigation"/>
|
||||
|
||||
</android.support.design.widget.CoordinatorLayout>
|
||||
@ -57,7 +57,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginStart="@dimen/spacing_xs_large"
|
||||
android:layout_marginStart="@dimen/spacing_normal"
|
||||
tools:text="50 minutes ago"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.design.widget.AppBarLayout
|
||||
android:id="@+id/appbar"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/bbn_bottom_navigation_width"
|
||||
app:elevation="0dp"
|
||||
app:theme="@style/ToolbarStyleDark">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_scrollFlags="scroll|enterAlways">
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?actionBarSize"
|
||||
android:background="?colorPrimary"
|
||||
android:theme="@style/ToolbarStyleDark"
|
||||
app:popupTheme="@style/ToolbarStyleDark"
|
||||
app:theme="@style/ToolbarStyleDark"/>
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:id="@+id/toolbarShadow"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="4dp"
|
||||
android:background="@drawable/toolbar_shadow"/>
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.design.widget.AppBarLayout
|
||||
android:id="@+id/appbar"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/bbn_bottom_navigation_width"
|
||||
app:elevation="0dp"
|
||||
app:theme="@style/ToolbarStyleDark">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_scrollFlags="scroll|enterAlways">
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?actionBarSize"
|
||||
android:background="?colorPrimary"
|
||||
android:theme="@style/ToolbarStyleDark"
|
||||
app:popupTheme="@style/ToolbarStyleDark"
|
||||
app:theme="@style/ToolbarStyleDark"/>
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:id="@+id/toolbarShadow"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="4dp"
|
||||
android:background="@drawable/toolbar_shadow"/>
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.design.widget.AppBarLayout
|
||||
android:id="@+id/appbar"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/transparent"
|
||||
app:elevation="0dp"
|
||||
app:theme="@style/ToolbarStyleDark">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_scrollFlags="scroll|enterAlways">
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?actionBarSize"
|
||||
android:background="?colorPrimary"
|
||||
android:theme="@style/ToolbarStyleDark"
|
||||
app:popupTheme="@style/ToolbarStyleDark"
|
||||
app:theme="@style/ToolbarStyleDark"/>
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:id="@+id/toolbarShadow"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="4dp"
|
||||
android:background="@drawable/toolbar_shadow"/>
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
@ -3,5 +3,5 @@
|
||||
<dimen name="layout_margin">58dp</dimen>
|
||||
<integer name="num_columns">2</integer>
|
||||
<dimen name="fab_margin">24dp</dimen>
|
||||
<integer name="small_spans">1</integer>
|
||||
<integer name="small_spans">2</integer>
|
||||
</resources>
|
||||
@ -23,4 +23,5 @@
|
||||
<dimen name="large_icon_zie">48dp</dimen>
|
||||
<dimen name="header_icon_zie">64dp</dimen>
|
||||
<dimen name="icon_size">24dp</dimen>
|
||||
<dimen name="dimen.bbn_elevation_tablet">0dp</dimen>
|
||||
</resources>
|
||||
|
||||
@ -153,4 +153,5 @@
|
||||
<string name="logout">Logout</string>
|
||||
<string name="thank_you_for_feedback">Thanks for your feedback.</string>
|
||||
<string name="current_version">Current Version</string>
|
||||
<string name="custom_tablet_provider">com.fastaccess.ui.widgets.TabletBehavior</string>
|
||||
</resources>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user