Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid XML layout not working as expected with tablelayout and scrollview
    primarykey
    data
    text
    <p><strong>EDIT: Does TableLayout not work properly? I see most of you say use relative layout, and skip tableview?</strong></p> <p><img src="https://i.stack.imgur.com/kyOlw.jpg" alt="enter image description here"></p> <p>The SPACE on after Data 1 and Data 2 I was trying to get rid of. If I put the same XML code without the TableLayout then it looks to be ok. What do I change?</p> <p>The 3rd row with the "100" I wanted 2 entry textviews on the right side. I have tried everything I can think of and it will not go to the right. I removed the 2nd textview to see if that helped, but didnt make much difference.</p> <p>Can anyone tell me what I did wrong? thank you!</p> <p>Here is the XML:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; </code></pre> <p></p> <pre><code>&lt;ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content"&gt; &lt;TableLayout android:layout_width="fill_parent" android:stretchColumns="*" android:layout_height="fill_parent" android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android" android:padding="6px"&gt; &lt;TableRow style="@style/FormRows" android:layout_marginTop="15sp"&gt; &lt;Button android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="5px" android:layout_span="3" android:layout_weight="1" android:text="Save" android:id="@+id/dgSave" /&gt; &lt;/TableRow&gt; &lt;TableRow style="@style/FormRows"&gt; &lt;TextView android:layout_width="70sp" android:layout_height="wrap_content" android:textSize="16sp" android:layout_weight="1" android:text="Data 1" /&gt; &lt;Spinner android:id="@+id/dgData0" android:layout_weight="2" android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt; &lt;/TableRow&gt; &lt;TableRow&gt; &lt;LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content"&gt; &lt;EditText android:text="100" android:selectAllOnFocus="true" android:imeOptions="actionNext" android:numeric="integer" android:width="100sp" android:id="@+id/dgWarn0" android:gravity="right" android:layout_height="wrap_content" android:layout_weight="1" android:layout_gravity="right" android:layout_span="2" /&gt; &lt;EditText android:text="100" android:selectAllOnFocus="true" android:imeOptions="actionNext" android:numeric="integer" android:width="100sp" android:id="@+id/dgWarn1" android:gravity="right" android:layout_height="wrap_content" android:layout_weight="1" android:layout_gravity="right" android:layout_span="2" /&gt; &lt;/LinearLayout&gt; &lt;/TableRow&gt; &lt;TableRow style="@style/FormRows"&gt; &lt;TextView android:layout_width="70sp" android:layout_height="wrap_content" android:textSize="16sp" android:layout_weight="1" android:text="Data 2" /&gt; &lt;Spinner android:id="@+id/dgData1" android:layout_weight="2" android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; &lt;/ScrollView&gt; </code></pre> <p></p> <p>THANK YOU! for any help!!! Mark</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.
 

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