Scroling technique 2 example 2
Why Stack Overflow recommends it
Stack Overflow users link it as a visual target when asking how to reproduce a pinned toolbar with a collapsing tab bar or view beneath it in Android.
Recommended by 0 people across 0 different months, 2016 to 2017.
What it is
A five-second screen recording of an Android app demonstrating a scrolling behavior with CoordinatorLayout and AppBarLayout. The toolbar stays pinned while a TabLayout scrolls away and re-enters on scroll-up, using layout_scrollFlags set to scroll|enterAlways on the tabs only.
What people said
Cites Jaydeep · 2016-07 · Stack Overflow · on “app:layout_scrollFlags="scroll|enterAlways" doesn't works with LinearLayout”
[this video] i want something like this, the only difference is i want LinearLayout and textViews inside it and this video has a tabLayout
Cites manitaz · 2016-08 · Stack Overflow · on “pin buttons below toolbar while scrolling android”
I need to show buttons below toolbar while scroll down like below video. Any samples? I have tried lot but confused. [this video]
Cites Tooto · 2016-12 · Stack Overflow · on “Toolbar in coordinator layout”
How can i do like on this [this video] video? This video is demonstrating of this tutorial [LINK] , but i doesnt work. Source code of example activity. [LINK] Full source code: Github [LINK]
Cites Sadhon · 2017-11 · Stack Overflow · on “collasping and expanding LinearLayout instead of TabLayout inside AppBarLayout”
I have used LinearLayout instead of Tablayout inside AppBarLayout. Please first watch this video link [this video] . I want the same collapsing and extending effect for this LinearLayout as TabLayout has (in this video) when scroll event occurs. I also want toolbar to to be fixed on the top. just Like the video demo. My code is below. <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android=" [LINK] " xmlns:app=" [LINK] " xmlns:tools=" [LINK] " android:id="@+id/main_content" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" tools:context="com.cnpinyin.lastchinese.activities.ViewPagerSlider"> <andr