我的问题很简单。是否可以完全使用xml创建选项卡?我的应用程序只有一个活动。我想要有两个选项卡,显示相同的数据但在稍微不同的布局中。看起来应该是可以的,但我找不到相关信息。
谢谢提供帮助,
马克
谢谢提供帮助,
马克
<TabHost
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<!-- Tabs at bottom of screen -->
<TabWidget
android:background="@drawable/textview_top"
android:layout_weight="12"
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="0dip"
/>
</TabHost>