TabHost创建老是报错
只是拖了一个Tabhost控件,LinearLayout那里就一直飘红,带着大红叉,求~~~
<?xml version="1.0" encoding="utf-8"?>
<TabHost
xmlns:android1="http://schemas.android.com/apk/res/android"
android1:id="@android:id/tabhost"
android1:layout_width="match_parent"
android1:layout_height="match_parent" >
<LinearLayout
android1:layout_width="match_parent"
android1:layout_height="match_parent"
android1:orientation="vertical" >
<TabWidget
android1:id="@android:id/tabs"
android1:layout_width="match_parent"
android1:layout_height="wrap_content" >
</TabWidget>
<FrameLayout
android1:id="@android:id/tabcontent"
android1:layout_width="match_parent"
android1:layout_height="match_parent" >
<LinearLayout
android1:id="@+id/tab1"
android1:layout_width="match_parent"
android1:layout_height="match_parent" >
</LinearLayout>
<LinearLayout
android1:id="@+id/tab2"
android1:layout_width="match_parent"
android1:layout_height="match_parent" >
</LinearLayout>
<LinearLayout
android1:id="@+id/tab3"
android1:layout_width="match_parent"
android1:layout_height="match_parent" >
</LinearLayout>
</FrameLayout>
</LinearLayout>
</TabHost>
Android tabhost 布局
[解决办法]
我试过了,我的没飘红,刷新下project,重新编译一下啥的。