Android 选项卡主机中的额外行
我真的被以下问题困住了。Android 选项卡主机中的额外行,android,Android,我真的被以下问题困住了。 我在LinearLayout中使用了FrameLayout,然后通过代码将LinearLayout添加到此FrameLayout,但它会产生额外的空间。我已经给出了下面的屏幕截图。 我认为标记为白色的部分是问题所在。我需要删除此项。 我的框架布局 <TabHost android:cacheColorHint="#00000000" android:id="@android:id/tabhost" android:
我在LinearLayout中使用了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
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"/>
谢谢尝试将视图的填充和边距设置为0。希望您正在尝试删除Tabhost上的淡入淡出条,
如果是,请参阅此谢谢您的回答。它不起作用。我已经试过了。:(如果您还添加了在LinearLayout中添加FrameLayout的代码,可能会有所帮助。很抱歉,现在我添加了它