Android TabHost详解及事例(选项卡)
Android TabHost的写法基本是固定的,注意:id必须是固定的,是死的,不然异常。 TabHost分三部分: 1.Tabhost android:id=”@android:id/tabhost” 2.TabWidget android:id=”@android:id/tabs” 3.FrameLayout android:id=”@android:id/tabcontent” 好了,思想+代码。 layout代码: <TabHost android:id="@android:id/tabhost" android:layout_width="match_parent" android:layout_height="match_p…