【Android】Tablayout 添加选项卡的两种方式
一、.xml文件中添加
使用谷歌开源库
<com.google.android.material.tabs.TabLayout
android:id="@+id/mytab"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@color/colorGray">
原创
2020-09-02 08:48:28 ·
1557 阅读 ·
0 评论