Note that there are some explanatory texts on larger screens.

plurals
  1. POTabhost tutorial broken?
    primarykey
    data
    text
    <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/4963773/anyone-know-what-this-error-mean-for-android-tabs">Anyone know what this error mean for android tabs?</a> </p> </blockquote> <p>I have been trying to do the TabHost tutorial in the SDK but for some reason, is appears to break. On Step 4 I copy and paste the xml code, I get an error that prevents it from inflating properly. the error is:</p> <pre><code> Error in an XML file: aborting build. </code></pre> <p>This is in the graphical layout of the xml file. </p> <pre><code>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' </code></pre> <p>The xml file Itself has this in it. </p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;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"&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="5dp"&gt; &lt;TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" /&gt; &lt;FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="5dp" /&gt; &lt;/LinearLayout&gt; &lt;/TabHost&gt; </code></pre> <p>Am I doing something wrong? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload