ITPub博客

首页 > 应用开发 > > FragmentTabHost怎么用?

FragmentTabHost怎么用?

作者:hzh98 时间:2019-10-10 15:52:28 0 删除 编辑

不知道为什么下面会有部分缺失,图里的效果是我加了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>

请问怎么解决这个问题

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4459/viewspace-3142993/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-08-19

  • 博文量
    78
  • 访问量
    587