FragmentTabHost怎么用?


https://img1.mukewang.com/5cd3c3700001714804320111.jpg

不知道为什么下面会有部分缺失,图里的效果是我加了marginbottom顶起来的,不加的话就贴着底部

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <FrameLayout
        android:id="@+id/tabhost_content"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1" />

    <com.asus.netease.util.FragmentTabHost
        android:id="@+id/tab_Host"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="20dp"
        >

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <FrameLayout
                android:id="@android:id/tabcontent"
                android:layout_width="0dp"
                android:layout_height="0dp" />
        </LinearLayout>
    </com.asus.netease.util.FragmentTabHost>

</LinearLayout>

请问怎么解决这个问题


慕用7071041
浏览 946回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP