Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>It is pretty obvious what is wrong and also the message in Eclipse tells you quite exactly what the mistake is. Your <code>FrameLayout</code> has no content.</p> <p>What are you trying to achieve with that <code>FrameLayout</code>?</p> <p><strong>UPDATE:</strong> Just realized what you were trying to do. Try this layout.</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"&gt; &lt;FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0dip" android:layout_weight="1" android:padding="20dip" android:background="#fff"&gt; &lt;RadioGroup android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:checkedButton="@+id/first" android:id="@+id/states"&gt; &lt;RadioButton android:id="@id/first" android:background="#FF00FF" android:width="80dip" android:height="70dip"/&gt; &lt;RadioButton android:id="@+id/second" android:background="#FFFFFF" android:width="80dip" android:height="70dip"/&gt; &lt;RadioButton android:id="@+id/third" android:background="#00FFFF" android:width="80dip" android:height="70dip"/&gt; &lt;RadioButton android:id="@+id/fourth" android:background="#0000FF" android:width="80dip" android:height="70dip"/&gt; &lt;/RadioGroup&gt; &lt;/FrameLayout&gt; &lt;TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0" android:visibility="gone"/&gt; &lt;/LinearLayout&gt; &lt;/TabHost&gt; </code></pre> <p>I've also corrected another mistake for you. Actually not necessarily a mistake but still. In the <code>RadioGroup</code> you are assigning the first <code>RadioButton</code> the ID <code>first</code> with <code>android:checkedButton="@+id/first"</code> when you're referencing it. When you actually get to the <code>RadioButton</code> your ID definition should not contain a <code>+</code> anymore. Check out the layout.</p>
 

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