Created
September 12, 2018 09:43
-
-
Save kelvinc1024/22e6c6ec46eb04849f0efa0f7629616c to your computer and use it in GitHub Desktop.
Scroll and Scroll Enter Always combination
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.design.widget.CoordinatorLayout | |
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.support.design.widget.AppBarLayout | |
android:id="@+id/appbarLayout" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<FrameLayout | |
android:layout_width="match_parent" | |
android:layout_height="200dp" | |
android:minHeight="48dp" | |
app:layout_scrollFlags="scroll"> | |
<ImageView | |
android:id="@+id/sample_image" | |
android:layout_width="match_parent" | |
android:layout_height="200dp" | |
android:layout_gravity="bottom|center_horizontal" | |
android:src="@mipmap/ic_launcher"/> | |
</FrameLayout> | |
<android.support.design.widget.TabLayout | |
android:id="@+id/tabLayout" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
app:layout_scrollFlags="scroll|enterAlways"/> | |
</android.support.design.widget.AppBarLayout> | |
<android.support.v7.widget.RecyclerView | |
android:id="@+id/recyclerview" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior"/> | |
</android.support.design.widget.CoordinatorLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment