0
我需要在Android设备中开发此布局,即时通讯在设计中使用TabView和三个选项卡。 TabWidget需要在屏幕的底部,我也需要一种方法来为tabwidget开发这种布局。实现Android自定义Tabbar
我需要在Android设备中开发此布局,即时通讯在设计中使用TabView和三个选项卡。 TabWidget需要在屏幕的底部,我也需要一种方法来为tabwidget开发这种布局。实现Android自定义Tabbar
刚刚尝试了这种方式来获得TabWidget
在屏幕的底部:
<?xml version="1.0" encoding="utf-8"?> <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"> <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" /> <TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center|center" android:tabStripEnabled="false"/> </LinearLayout>