I met a lot of issues related with my problem but nobody I found wanted the behaviour I\'m looking for.
I want a view pager with tabs and app bar, when the contained fra
If you don't want parallax effect, you don't need to use CollapsingToolbarLayout
.
Most important configuration:
In Toolbar, set app:layout_scrollFlags="scroll|enterAlways"
.
In ViewPager, set app:layout_behavior="@string/appbar_scrolling_view_behavior"
.
And layout should look like this:
<android.support.design.widget.CoordinatorLayout>
<android.support.design.widget.AppBarLayout>
<android.support.v7.widget.Toolbar/>
<android.support.design.widget.TabLayout/>
</android.support.design.widget.AppBarLayout>
<android.support.v4.view.ViewPager/>
<android.support.design.widget.FloatingActionButton/>
</android.support.design.widget.CoordinatorLayout>
Move ProgressWheel
out of your SwipeRefreshLayout
to fix your problem that SwipeRefreshLayout can't refresh.