Android 如何像图中所示那样设置选项卡栏

Android 如何像图中所示那样设置选项卡栏,android,tabbar,Android,Tabbar,我正在尝试设置选项卡栏,如图中所示 这是我的xml文件` <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

我正在尝试设置选项卡栏,如图中所示

这是我的xml文件`

<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:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical" >

        <FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1" />

        <TabWidget
            android:id="@android:id/tabs"
            android:layout_width="match_parent"
            android:layout_height="30sp"
            android:layout_marginBottom="40sp"
            android:layout_marginLeft="70sp"
            android:layout_marginRight="70sp"
            android:layout_weight="0"
            android:background="@drawable/rounded_corners_white_bg"
            android:tabStripEnabled="false" >
        </TabWidget>

    </LinearLayout>

</TabHost>`

`
通过设置左边、右边和底部的边距,我现在得到了这个上升。 在这个图中,选项卡栏显示在底部,背景颜色为黑色,这是我不想要的。 因为它的黑色背景色,我的活动的内容不可见
有人能帮我吗?????

我试过你的布局文件,它提供了左、右和底部的空间。这里工作很好。您是否使用任何其他外侧布局?或者可能是由于您的@drawable/rounded_corners_white_bg。在背景中,选择任何其他颜色,如“cd9089”