我正在使用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