Note that there are some explanatory texts on larger screens.

plurals
  1. POlayout buttons are not the same size in android
    primarykey
    data
    text
    <p>I have two questions, the first is that I would like the buttons to be on the bottom corner of the screen stacked like they are (they currently are in the middle) and I would like them to be the same size, currently the top 2 buttons are bigger then the bottom two buttons. Also maybe lowering the texview boxes down a little if that is easy enough. <img src="https://i.stack.imgur.com/lMRZf.png" alt="Picture of emulator running for perspective"></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="horizontal" &gt; &lt;LinearLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1.0" android:orientation="vertical" &gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="2" android:gravity="center" &gt; &lt;EditText android:id="@+id/playerLifeOne" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:inputType="number" android:minWidth="120dp" android:text="20" android:textSize="40dp" &gt; &lt;requestFocus /&gt; &lt;/EditText&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="wrap_content" android:layout_height="0dp" android:layout_weight="1" android:orientation="vertical" &gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:orientation="horizontal" &gt; &lt;Button android:id="@+id/badd1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" android:text="+1" /&gt; &lt;Button android:id="@+id/badd5" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" android:text="+5" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:orientation="horizontal" &gt; &lt;Button android:id="@+id/bsub1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="-1" /&gt; &lt;Button android:id="@+id/bsub5" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="-5" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="1dp" android:layout_height="match_parent" android:background="@android:color/black" /&gt; &lt;LinearLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1.0" android:orientation="vertical" &gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="2" android:gravity="center" &gt; &lt;EditText android:id="@+id/playerLifeTwo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:inputType="number" android:minWidth="120dp" android:text="20" android:textSize="40dp" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="wrap_content" android:layout_height="0dp" android:layout_gravity="right" android:layout_weight="1" android:orientation="vertical" &gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:orientation="horizontal" &gt; &lt;Button android:id="@+id/b2add1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" android:text="+1" /&gt; &lt;Button android:id="@+id/b2add5" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" android:text="+5" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center" android:orientation="horizontal" &gt; &lt;Button android:id="@+id/b2sub1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="-1" /&gt; &lt;Button android:id="@+id/b2sub5" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="-5" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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. 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