android CoordinatorLayout里viewpager占据整个页面
16lz
2021-01-23
<LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" app:layout_behavior="@string/appbar_scrolling_view_behavior"> <com.ogaclejapan.smarttablayout.SmartTabLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/courseDetailTab" android:layout_width="match_parent" android:layout_height="48dp" android:paddingBottom="4dp" app:stl_defaultTabTextColor="@color/selected_unselected" app:stl_distributeEvenly="true" app:stl_indicatorColor="@color/colorPrimary" app:stl_indicatorCornerRadius="1.5dp" app:stl_indicatorInterpolation="smart" app:stl_indicatorThickness="3dp" app:stl_underlineColor="@color/white" /> <androidx.viewpager.widget.ViewPager android:id="@+id/videoViewpager" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_below="@id/courseDetailTab" /> LinearLayout>
解决问题关键语句
app:layout_behavior="@string/appbar_scrolling_view_behavior">
更多相关文章
- Android中的那些sql语句
- Android怎么在控制台输出语句
- 《Expert Android》关键点摘录之二
- Android 关键字 收集
- Android WebView文件上传(关键代码)
- [Java][Android][Process] 暴力的服务可以解决一切,暴力的方式执