,在这里我有什么
。问题是当折叠工具栏被展开时,tablayout在recyclerView后面。而且我无法删除标题“Musico”或将它设置为顶部为粘性。
我的XML是
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:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="200dp"
android:fitsSystemWindows="true"
android:theme="@style/AppTheme.AppBarOverlay">
android:id="@+id/collapsing_toolbar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
app:contentScrim="?attr/colorPrimary"
app:layout_scrollFlags="scroll|exitUntilCollapsed"
>
android:id="@+id/backdrop"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:scaleType="centerCrop"
android:src="@drawable/hp"
app:layout_collapseMode="parallax"
/>
android:id="@+id/toolbar"
app:layout_scrollFlags="scroll|enterAlways"
app:layout_collapseMode="pin"
android:layout_width="match_parent"
android:layout_height="90dp"
app:popupTheme="@style/AppTheme.PopupOverlay" >
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="40dp"
app:tabGravity="center"
android:layout_gravity="bottom"
app:tabMode="scrollable" />
和content_main.xml
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:showIn="@layout/activity_main"
app:behavior_overlapTop="30dp"
>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/view_pager"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp">
请帮助。