Created
September 13, 2018 00:07
-
-
Save kelvinc1024/5f1a09b4911fc930b704c39d7f8fa6f9 to your computer and use it in GitHub Desktop.
Scroll ExitUntilCollapsed with Scroll EnterAlways is not working
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|exitUntilCollapsed"> | |
<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