Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid layout is off. need to fix position
    primarykey
    data
    text
    <p>I would like the layout on the right to match the layout on the left in terms of the text boxes that have the '20' in them. The one on the left is where I would like it to be but the one on the right will not position correctly. I would also like to have a small spinner in the top right corner above the 20</p> <p><img src="https://i.stack.imgur.com/lqS1D.png" alt="enter image description here"></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;RelativeLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="2" android:gravity="center" &gt; &lt;TextView android:id="@+id/history1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:layout_marginBottom="98dp" android:text="This is where life histroy goes" /&gt; &lt;EditText android:id="@+id/playerLifeOne" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_marginTop="49dp" android:gravity="center" android:inputType="number" android:minWidth="120dp" android:text="20" android:textSize="40dp" /&gt; &lt;/RelativeLayout&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" 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="78dp" android:layout_height="wrap_content" android:text="+1" /&gt; &lt;Button android:id="@+id/badd5" android:layout_width="78dp" android:layout_height="wrap_content" 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="78dp" android:layout_height="wrap_content" android:text="-1" /&gt; &lt;Button android:id="@+id/bsub5" android:layout_width="78dp" 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="fill_parent" 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:layout_marginTop="0dp" 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="156dp" android:layout_height="wrap_content" android:layout_gravity="right" 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="78dp" android:layout_height="wrap_content" android:text="+1" /&gt; &lt;Button android:id="@+id/b2add5" android:layout_width="78dp" android:layout_height="wrap_content" 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="78dp" android:layout_height="wrap_content" android:text="-1" /&gt; &lt;Button android:id="@+id/b2sub5" android:layout_width="78dp" 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.
    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.
 

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