Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2>Solution 1</h2> <p>Set <code>android:paddingLeft</code> inside your first button. This will force the <code>drawableLeft</code> by <code>paddingLeft</code> amount to the right. This is the fast/hacky solution.</p> <h2>Solution 2</h2> <p>Instead of using a ButtonView, use a LinearLayout that contains both a textview and imageview. This is a <strong>better solution</strong>. It gives you more flexibility in the positioning of the checkmark.</p> <p>Replace your ButtonView with the following code. You need the <code>LinearLayout</code> and <code>TextView</code> to use <code>buttonBarButtonStyle</code> so that the background colors are correct on selection and the text size is correct. You need to set <code>android:background="#0000"</code> for the children, so that only the LinearLayout handles the background coloring.</p> <pre><code>&lt;LinearLayout style="?android:attr/buttonBarButtonStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="horizontal" &gt; &lt;ImageView style="?android:attr/buttonBarButtonStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:clickable="false" android:background="#0000" android:src="@drawable/ic_checkmark_holo_light"/&gt; &lt;TextView style="?android:attr/buttonBarButtonStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:clickable="false" android:background="#0000" android:text="Done" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>Here are some screenshots I took while trying this out.</p> <p><img src="https://i.stack.imgur.com/d9H8N.png" alt="enter image description here"> <img src="https://i.stack.imgur.com/QROKP.png" alt="enter image description here"> <img src="https://i.stack.imgur.com/SMTXI.png" alt="enter image description here"></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.
    3. 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