我有一个在我的 android 应用程序中使用选项卡的屏幕。在 tabwidget 和 framelayout 之间有一条线(如边框)。我想摆脱那条线,但似乎找不到它是什么。我通过将其可见性设置为已确定它是 FrameLayout 的一部分。请参考以下代码:
<?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">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#fb8c10"
>
<ImageView
android:id="@+id/img_confirm_header"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/confirm_header"
/>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="0dip"
android:background="#fb8c10"
android:tabStripEnabled="false"
/>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/tab_bg"
/>
</LinearLayout>
</TabHost>
这是当前布局的链接以及我正在尝试做的事情 http://img441.imageshack.us/g/screenshot20110116at513.png/
橙色布局是我的应用程序,灰色是我想要做的。
请注意在灰色屏幕截图中选项卡如何流入框架。
抱歉链接,我还不能发布图片:p
谢谢!