Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Try this code, it will give a result like the first image. But I did some color changes only.</p> <p>Code:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/buttonbar" style="@android:style/ButtonBar" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#000000" android:orientation="horizontal" &gt; &lt;Button android:id="@+id/okButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#000000" android:layout_weight="1" android:text="@android:string/ok" android:textColor="#FFFFFF" /&gt; &lt;Button android:id="@+id/cancelButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#000000" android:layout_weight="1" android:text="@android:string/cancel" android:textColor="#FFFFFF" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>Update: This is what you need.</p> <p>Edited:</p> <pre><code> &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/buttonbar" style="@android:style/ButtonBar" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#000000" android:orientation="horizontal" &gt; &lt;Button android:id="@+id/okButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#000000" android:layout_weight="1" android:text="@android:string/ok" android:textColor="#FFFFFF" /&gt; &lt;View android:layout_width="match_parent" android:layout_height="1dp" android:background="#ffffff" /&gt; &lt;Button android:id="@+id/cancelButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#000000" android:layout_weight="1" android:text="@android:string/cancel" android:textColor="#FFFFFF" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>Increase the size of dp as much as you want to show the difference.</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