Iphone android tabwidget需要帮助
我需要在我的应用程序中创建标签,我已经使用了以下工作良好。。。但我需要它显示为标签,查看iphone如何使用安卓1.6实现它?提前谢谢Iphone android tabwidget需要帮助,iphone,android,tabwidget,Iphone,Android,Tabwidget,我需要在我的应用程序中创建标签,我已经使用了以下工作良好。。。但我需要它显示为标签,查看iphone如何使用安卓1.6实现它?提前谢谢 <?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"
<?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">
<RelativeLayout
android:layout_height="fill_parent"
android:layout_width="fill_parent">
<TabWidget
android:id="@android:id/tabs"
android:layout_alignParentBottom="true"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp" />
</RelativeLayout>
我已经尝试过了,但是我的应用程序崩溃了
<?xml version="1.0" encoding="utf-8"?>
<TabHost android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@android:id/tabhost"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TabWidget
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@android:id/tabs"
android:layout_alignParentBottom="true"
/>
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@android:id/tabcontent"
>
</FrameLayout>
</RelativeLayout>
</TabHost>
我定制了android选项卡,看起来像iPhone UITabBar,可以在这里找到:
RadioGroup
实现自己的选项卡,但这需要大量的工作,
要实现
RadioGroup
,您可以参考。它使用类似Iphone的SegmentedControl
,您可以自己使用它使其看起来像Iphone标签。前两个链接现在没有任何意义。第一个给出404,第二个导致描述,但代码链接给出404。死胡同