Possible duplicate:
Does anyone know what this error means for Android tabs?
I am trying to make a TabHost tutorial in the SDK, but for some reason it seems to break. In step 4, I copy and paste the xml code, I get an error message that prevents it from being overestimated. error:
Error in an XML file: aborting build.
This is in the graphic layout of the xml file.
Error during post inflation process: TabHost requires a TabWidget with id "android:id/tabs", View found with id "tabs" is 'com.android.layoutlib.bridge.MockView'
The xml file has this in it.
<?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="5dp"> <TabWidget 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="fill_parent" android:padding="5dp" /> </LinearLayout> </TabHost>
Am I doing something wrong?
source share