Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Instead of using button u can use linear-layout(Clickable) and use its id instead of Button id.something like this...... Using this you can customize your Button as per your requirements.</p> <pre><code>&lt;LinearLayout android:layout_width="match_parent" android:layout_height="50dp" android:orientation="horizontal" &gt; </code></pre> <p>//Button-A</p> <pre><code> &lt;LinearLayout android:id="@+id/a_button" android:layout_width="0dp" android:layout_height="fill_parent" android:layout_weight="0.50" android:orientation="vertical" android:clickable="true"&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center_horizontal|center_vertical" android:text="Text-A" android:paddingTop="10dip" /&gt; &lt;ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:scaleType="fitXY" android:src="@drawable/image_A" android:paddingTop="13dip" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>//For Horizontal partition line</p> <pre><code> &lt;TextView android:layout_width="2dp" android:layout_height="fill_parent" android:background="#303030" android:paddingTop="20dip" /&gt; </code></pre> <p>//Button-B</p> <pre><code> &lt;LinearLayout android:id="@+id/b_button" android:layout_width="0dp" android:layout_height="fill_parent" android:layout_weight="0.50" android:orientation="vertical" android:clickable="true"&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Text-B" android:gravity="center_horizontal|center_vertical" android:paddingTop="10dip" /&gt; &lt;ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:scaleType="fitXY" android:src="@drawable/image_B" android:paddingTop="13dip" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre>
 

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