VincentTheonardo VincentTheonardo -4 years ago 213
Android Question

Android Tabbed Layout is Scrollable?

I'm developing an activity with Tabbed Layout consisting of 2 fragment layout. The first fragment consisted of Listview and an EditText.
The problem with my ui is my TabbedLayout is scrollable. I mean when I try to scroll on the toolbar , it's scrollable. How to prevent it to be scrollable, because some of my Listview items is hidden below because my TabbedLayout is scrollable

Before Scrolling my TabbedLayout AppBar

After Scrolled

Answer Source

Define following property in your Toolbar xml :

app:layout_scrollFlags="enterAlways"

And if you have defined following property in your frame layout then remove it .

app:layout_behavior="@string/appbar_scrolling_view_behavior"
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download