当我复制下面的代码。 我收到错误..
<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">
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="0"/>
<FrameLayout
android:id="@+id/realtabcontent"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:orientation="horizontal"/>
</LinearLayout>
</android.support.v4.app.FragmentTabHost>
错误是
此项目包含Java编译错误,这可能导致自定义视图的呈现失败。首先修复编译问题。
在呈现期间引发异常:没有标记为null的标签
我在谷歌搜索过。我复制了每个例子,但我仍然得到错误......