我明明在xml中,吧TabWidget的android:visibility="gone"隐藏掉了,但是在代码中添加标签的时候,标签栏又会出现在顶部,请问怎么回事啊,感觉隐藏不掉系统自带的标签栏
解决方案 »
- ANDROID程序出现“很抱歉,XXX已停止运行”这个是什么原因?
- 如何通过另一个软件杀死某个apk的某个activity
- 结束当前Activity返回前一个Activity要怎么做
- android 从一个Apk启动另一个apk引起的问题
- 手机定位
- 请问有没有可能将html5网页直接转成IOS/Android
- 求教:如何通过JNI调用手机自身摄像头录像并处理图片?
- gridview里图片过大,出现oom问题,咋样处理?
- android代码混淆后无法运行
- 简单的部局搞的我很头疼,请高手来指点下:一个LinearLayout设置的是水平的,fill_parent ,里面的3个Button权重都是1....
- 使用Ant编译zxing-1.6产生的问题
- 急问 TableLayout 动态添加控件不显示?
<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="0.0dip"
android:layout_weight="1.0" /> <TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0.0"
android:visibility="gone" /> <LinearLayout
android:id="@+id/main_tab_group"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="@drawable/mmfooter_bg"
android:gravity="bottom"
android:orientation="horizontal"
android:paddingTop="2.0dip" > <FrameLayout
android:layout_width="0.0dip"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:background="@null" > <RadioGroup
android:id="@+id/rg"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" > <RadioButton
android:id="@+id/tab1_radio"
style="@style/MMTabButton"
android:checked="true"
android:drawableTop="@drawable/tab1"
android:text="tab1" /> <RadioButton
android:id="@+id/tab2_radio"
style="@style/MMTabButton"
android:checked="true"
android:drawableTop="@drawable/tab2"
android:text="tab2" /> <RadioButton
android:id="@+id/tab3_radio"
style="@style/MMTabButton"
android:checked="true"
android:drawableTop="@drawable/tab1"
android:text="tab3" /> <RadioButton
android:id="@+id/tab4_radio"
style="@style/MMTabButton"
android:checked="true"
android:drawableTop="@drawable/tab2"
android:text="tab4" />
</RadioGroup>
</FrameLayout>
</LinearLayout>
</LinearLayout></TabHost>