Skip to content
Snippets Groups Projects
Commit 607e531c authored by Jawnnypoo's avatar Jawnnypoo
Browse files

Fancier scrolling which hides the toolbar on a few screens

parent b303b628
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -21,8 +21,6 @@ import butterknife.OnClick;
*/
public class SettingsActivity extends BaseActivity {
 
private static final int REQUEST_COUNTRY = 1;
public static Intent newIntent(Context context) {
Intent intent = new Intent(context, SettingsActivity.class);
return intent;
Loading
Loading
@@ -34,7 +32,6 @@ public class SettingsActivity extends BaseActivity {
@BindView(R.id.text_launch_activity)
TextView mTextLaunchActivity;
 
@OnClick(R.id.root_launch_activity)
void onLaunchActivityClicked() {
new MaterialDialog.Builder(this)
Loading
Loading
Loading
Loading
@@ -7,11 +7,10 @@
android:layout_height="match_parent"
android:fitsSystemWindows="true">
 
<LinearLayout
<android.support.design.widget.CoordinatorLayout
android:id="@+id/main_content_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:layout_height="match_parent">
 
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
Loading
Loading
@@ -21,16 +20,18 @@
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" />
android:layout_height="?attr/actionBarSize"
app:layout_scrollFlags="scroll|enterAlways|snap" />
 
</android.support.design.widget.AppBarLayout>
 
<FrameLayout
android:id="@+id/root_fragment"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
 
</LinearLayout>
</android.support.design.widget.CoordinatorLayout>
 
<com.commit451.gitlab.view.LabCoatNavigationView
android:id="@+id/navigation_view"
Loading
Loading
Loading
Loading
@@ -7,11 +7,10 @@
android:layout_height="match_parent"
android:fitsSystemWindows="true">
 
<LinearLayout
<android.support.design.widget.CoordinatorLayout
android:id="@+id/main_content_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:layout_height="match_parent">
 
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
Loading
Loading
@@ -21,13 +20,15 @@
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" />
android:layout_height="?attr/actionBarSize"
app:layout_scrollFlags="scroll|enterAlways|snap" />
 
</android.support.design.widget.AppBarLayout>
 
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
 
<com.commit451.gitlab.view.LabCoatSwipeRefreshLayout
android:id="@+id/swipe_layout"
Loading
Loading
@@ -54,7 +55,7 @@
 
</FrameLayout>
 
</LinearLayout>
</android.support.design.widget.CoordinatorLayout>
 
<com.commit451.gitlab.view.LabCoatNavigationView
android:id="@+id/navigation_view"
Loading
Loading
Loading
Loading
@@ -7,11 +7,10 @@
android:layout_height="match_parent"
android:fitsSystemWindows="true">
 
<LinearLayout
<android.support.design.widget.CoordinatorLayout
android:id="@+id/main_content_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:layout_height="match_parent">
 
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
Loading
Loading
@@ -21,7 +20,8 @@
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" />
android:layout_height="?attr/actionBarSize"
app:layout_scrollFlags="scroll|enterAlways|snap"/>
 
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
Loading
Loading
@@ -32,7 +32,8 @@
 
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
Loading
Loading
@@ -41,7 +42,7 @@
<include layout="@layout/progress_fullscreen"/>
</FrameLayout>
 
</LinearLayout>
</android.support.design.widget.CoordinatorLayout>
 
<com.commit451.gitlab.view.LabCoatNavigationView
android:id="@+id/navigation_view"
Loading
Loading
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:layout_height="match_parent">
 
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
Loading
Loading
@@ -15,7 +14,8 @@
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize">
android:layout_height="?attr/actionBarSize"
app:layout_scrollFlags="scroll|enterAlways|snap">
 
<LinearLayout
android:layout_width="match_parent"
Loading
Loading
@@ -54,7 +54,8 @@
 
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
 
<android.support.v4.view.ViewPager
android:id="@+id/pager"
Loading
Loading
@@ -64,4 +65,4 @@
<include layout="@layout/progress_fullscreen"/>
</FrameLayout>
 
</LinearLayout>
\ No newline at end of file
</android.support.design.widget.CoordinatorLayout>
\ No newline at end of file
Loading
Loading
@@ -15,7 +15,6 @@
android:orientation="vertical"
android:layout_marginTop="?attr/actionBarSize">
 
<FrameLayout
android:id="@+id/root_launch_activity"
android:layout_width="match_parent"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment