-
android:layout\_width\="fill\_parent"
-
android:layout\_height\="fill\_parent"
-
\>
-
<FrameLayout
-
android:id\="@android:id/tabcontent"
-
android:layout\_width\="fill\_parent"
-
android:layout\_height\="match\_parent"
-
android:layout\_weight\="1"
-
\>
-
<TextView
-
android:id\="@+id/view1"
-
android:layout\_width\="wrap\_content"
-
android:layout\_height\="wrap\_content"
-
android:text\="nihao"
-
/>
-
<TextView
-
android:id\="@+id/view2"
-
android:layout\_width\="wrap\_content"
Android中两种实现底部Tab的方法,Android开发谈
最新推荐文章于 2024-05-14 09:03:02 发布
本文探讨了两种在Android中实现底部Tab的方法,包括使用TabHost和在LinearLayout中嵌套FrameLayout与RelativeLayout,并通过设置布局属性实现Tab位于底部的效果。作者反思了自己的学习过程,指出基础学习的重要性,并分享了全面的面试准备资料链接。
摘要由CSDN通过智能技术生成