在标签主机额外的行 [英] extra line in tab host
问题描述
我真的真的卡住了以下问题。结果
我用的FrameLayout里面的LinearLayout,然后通过code我加的LinearLayout本的FrameLayout,但它产生额外的空间。我已经给下面拍摄的画面。
I'm really really stuck the following problem.
I used FrameLayout inside LinearLayout and then through code i added linearlayout to this FrameLayout but it produce an extra space. I have given the screen shot below.
我的一部分标记为白色就是问题所在。我需要删除此。结果
我的FrameLayout
I part marked as white is the problem. i need to remove this.
My 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>
这是我加入这个的FrameLayout中的LinearLayout
This is the linearLayout i added this 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"/>
感谢您
推荐答案
希望你正试图消除对Tabhost褪色吧,结果
如果是的话请参阅本<一个href=\"http://www.anddev.org/view-layout-resource-problems-f27/delete-fading-bar-on-tabhost-t14393.html\"相对=nofollow>删除上Tabhost 褪色栏
Hope you are trying to remove the fading bar on Tabhost,
If so refer this Delete fading bar on Tabhost
这篇关于在标签主机额外的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!