【发布时间】:2014-01-21 06:13:20
【问题描述】:
我已经使用片段选项卡主机一段时间了,它工作正常。 突然我得到这个布局编译错误。
Exception raised during rendering: No tab known for tag null
activity_tabhost_search.xml:
<android.support.v4.app.FragmentTabHost
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:orientation="horizontal" />
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
</android.support.v4.app.FragmentTabHost>
请不要关闭它,因为我检查了所有线程但我无法解决这个问题。
【问题讨论】:
-
我打开了一个错误报告,请投票:code.google.com/p/android/issues/detail?id=78772
标签: android android-fragments fragment-tab-host