具体如图,什么原因导致的?朋友这样写却能正常运行
tabhost requires a tabwidget with id "android:id/tabs".,我并没有使用tabWidget控件,另外,这是fragmetnTabHost,不是tabHost
id属性不对,看看你上面的id是怎么写的
把tabHost里面的内容改成如下形式:
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="fill" >
</FrameLayout>