baidu_32040549 2016-04-07 06:14 采纳率: 0%
浏览 1540

安卓 FragmentTabhost

Exception raised during rendering: No tab known for tag null 怎么解决 ,使用 fragmentlabhost的时候出现,不知道怎么解决。求大神。。。
这是在建layout的时候出现。。。。
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

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

<android.support.v4.app.FragmentTabHost
    android:id="@android:id/tabhost"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" >

    <TabWidget
        android:id="@android:id/tabs"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="#FFF1F1F1" >
    </TabWidget>

    <FrameLayout
        android:id="@android:id/tabcontent"
        android:layout_width="0dp"
        android:layout_height="0dp" >
    </FrameLayout>
</android.support.v4.app.FragmentTabHost>

  • 写回答

2条回答 默认 最新

  • 东风玖哥 2016-07-21 12:40
    关注

    你试试TabLayout

    评论

报告相同问题?

悬赏问题

  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 spring后端vue前端
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题