tabhost内容未显示,跟xml有关
activity如下: package com.mobileclient.activity;
tabhost界面: <?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="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <FrameLayout android:id="@android:id/tabcontent" android:layout_width="match_parent" android:layout_height="0.0dip" android:layout_weight="1.0"/> <TabWidget android:id="@android:id/tabs" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="0.0" android:visibility="gone" /> <RadioGroup android:id="@+id/radiogroup" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" android:background="@drawable/bottombg" android:gravity="center_vertical" android:orientation="horizontal" > <RadioButton android:id="@+id/radio_introduce" android:layout_height="wrap_content" android:layout_width="wrap_content" android:background="@drawable/introduce" android:button="@null" android:layout_weight="1" android:checked="true" style="@style/rbt_bottom" android:text="@string/introduce"/> <RadioButton android:id="@+id/radio_chapter" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/introduce" android:layout_weight="1" android:button="@null" style="@style/rbt_bottom" android:text="@string/chapter"/> <RadioButton android:id="@+id/radio_notes" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/introduce" android:layout_weight="1" android:button="@null" style="@style/rbt_bottom" android:text="@string/notes" /> </RadioGroup> </LinearLayout> </TabHost>(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |