只是拖了一个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>Androidtabhost布局
<?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>Androidtabhost布局
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货