Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <code>@style/TabStyle</code> is simply a style that is applied, you can ignore that. The <code>@drawable/main_selector</code> is a graphic that is toggled depending on the situation. You can read more about selectors <a href="http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList" rel="noreferrer">here</a>. </p> <p>Example to get text <strong>on top</strong>:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RadioGroup xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" &gt; &lt;RadioButton android:text="Text on top" android:button="@null" android:background="#f00" android:layout_weight="1"/&gt; &lt;RadioButton android:text="Text on top" android:button="@null" android:background="#0f0" android:layout_weight="1"/&gt; &lt;/RadioGroup&gt; </code></pre> <p>Will give following result:</p> <p><img src="https://i.stack.imgur.com/V8qL9.jpg" alt="Behind, text on top example"></p> <p>If you want the Text to appear <strong>above</strong> the button you can use following xml:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RadioGroup xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" &gt; &lt;RadioButton android:text="Text on top" android:button="@null" android:drawableBottom="@android:drawable/btn_radio" android:gravity="center" android:layout_weight="1"/&gt; &lt;RadioButton android:text="Text on top" android:button="@null" android:drawableBottom="@android:drawable/btn_radio" android:gravity="center" android:layout_weight="1"/&gt; &lt;/RadioGroup&gt; </code></pre> <p>This will give following result:</p> <p><img src="https://i.stack.imgur.com/GgfOS.jpg" alt="Above example"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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