我正在使用TabWidget,并且我在TabActivity和Tabs之间得到一个空白区域。Android TabWidget空白问题
我不知道如何删除这个空格请任何一个可以帮助我,我应该如何删除它,我tab_main.xml如下:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TabHost
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="0dip"
android:layout_weight="1" />
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0" />
</LinearLayout>
</TabHost>
我试着将TabWidget的背景颜色设置为android:color:transparent,但Activity和Tab之间仍有相同的空白。
我不希望我的活动和标签之间的任何分离空间(是否有可能做到这一点?)
请任何一个可以建议我如何摆脱这一空白的。
您是否试图将“TabWidget”的高度设置为0dp,类似于框架布局?另外,如果你的目标是API 8或更多,你应该使用'match_parent'而不是fill。 – TronicZomB 2013-06-06 14:42:33