【发布时间】:2011-10-21 17:52:11
【问题描述】:
对不起我可怜的英语。我来自荷兰,我才 14 岁。
我正在练习我的 android 开发技能,但是我遇到了问题。如果我创建一个选项卡菜单,下面会出现一条水平线。黑色背景下你看不到它,但如果它是白色的,你会看到它。 ![http://img703.imageshack.us/img703/503/emulator.png][1]
我的问题很简单。我怎样才能删除那条线?此选项卡菜单的 XML 布局文件如下所示。
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ffffff">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp" />
</LinearLayout>
</TabHost>
【问题讨论】:
标签: android xml android-layout android-tabhost