0

我遇到了TabWidget布局问题。

我如何将选项卡与内容结合起来,因为它总是显示此褪色边缘:

在此处输入图像描述

图形是完美的。我设置了,android:tabStripEnabled="false"但它仍然向我显示分隔选项卡和框架布局的线。

这是 XML 代码

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
     android:orientation="vertical" 
    android:layout_height="match_parent"
    android:background="@drawable/background"
    tools:context=".MainActivity" >

    <include layout="@layout/action_bar" />

<TabHost

        android:id="@android:id/tabhost" android:layout_width="fill_parent"

        android:layout_height="fill_parent">

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:orientation="vertical" >

            <TabWidget
                android:id="@android:id/tabs"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:tabStripEnabled="false"
                android:divider="@null"
                android:showDividers="none" />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="1" >

                <FrameLayout
                    android:id="@android:id/tabcontent"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_gravity="center"
                    android:layout_weight="1"
                    android:background="@drawable/grger"
                    android:fadingEdge="none" >

                </FrameLayout>
            </LinearLayout>
        </LinearLayout>

    </TabHost>

    </LinearLayout>
4

0 回答 0