Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>A simple solution is to take buttons in Layout and then take the gravity of layout.... i m providing u a universal layout,which can be run on all layout.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" &gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight=".50" &gt;&lt;/RelativeLayout&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight=".50" android:orientation="vertical" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight=".25" android:gravity="center" &gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="myTxt" /&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="myTxt" /&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="myTxt" /&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="myTxt" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight=".25" android:gravity="center" &gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="myTxt" /&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="myTxt" /&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="myTxt" /&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="myTxt" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight=".25" android:gravity="center" &gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="myTxt" /&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="myTxt" /&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="myTxt" /&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="myTxt" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight=".25" android:gravity="center" &gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="myTxt" /&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="myTxt" /&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="myTxt" /&gt; &lt;Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="myTxt" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>@Ungureanu Liviu, still any query,then plz ask.</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. This table or related slice is empty.
    1. 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