我真的很困擾以下問題。
我在LinearLayout中使用了FrameLayout,然後通過代碼向此FrameLayout添加了linearlayout,但它產生了額外的空間。下面給出了屏幕截圖。 標籤主機中的額外行
我標記爲白色的部分是問題。我需要刪除這個。
我的FrameLayout
<TabHost
android:cacheColorHint="#00000000"
android:id="@android:id/tabhost"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TabWidget
android:id="@android:id/tabs"
android:cacheColorHint="#00000000"
android:visibility="gone"
android:layout_width="100dp"
android:layout_height="10dp">
</TabWidget>
<FrameLayout
tyle="@style/tabhost"
android:cacheColorHint="#00000000"
android:id="@android:id/tabcontent"
android:layout_width="wrap_content"
android:layout_height="fill_parent" />
</TabHost>
這是我的LinearLayout加入這個FrameLayout裏
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFFFFF"/>
謝謝
如果您還添加了在LinearLayout中添加FrameLayout的代碼,這可能會有所幫助。 – Adinia 2011-02-15 15:18:21
對不起。現在我加了 – Jithin 2011-02-15 15:50:20