Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid xml scrollview not working and layout_alignParentBottom not working
    primarykey
    data
    text
    <p> sorry for bad english</p> <p>I want to have xml with items and at the botton of xml i want to have 2 buttons horizantally, all that items i want to be able to scroll, I will give me what i tried, but i still have space at the button of xml and the elements is not scroll</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content"&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#FFFFFF" android:orientation="vertical" android:paddingLeft="5dip" android:paddingRight="5dip" &gt; &lt;TextView android:id="@+id/tv_address_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="10dip" android:text="@string/tv_address_title" android:textColor="#000000" android:textSize="20dip" android:typeface="serif" /&gt; &lt;!-- Label Label --&gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="25dip" android:layout_weight="1" &gt; &lt;TextView android:id="@+id/tv_address_username" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:text="@string/tv_address_labelName" android:textColor="#000000" /&gt; &lt;TextView android:id="@+id/tv_address_errorUsername" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:text="@string/require" android:textColor="#FF0000" /&gt; &lt;EditText android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/tv_address_username" android:layout_marginTop="5dip" android:hint="@string/et_hint_enterLabel" android:inputType="text" /&gt; &lt;/RelativeLayout&gt; &lt;!-- Province Label --&gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="25dip" android:layout_weight="1" &gt; &lt;TextView android:id="@+id/tv_address_province" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:text="@string/tv_province" android:textColor="#000000" /&gt; &lt;TextView android:id="@+id/tv_address_errorProvince" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:text="@string/require" android:textColor="#FF0000" /&gt; &lt;Spinner android:id="@+id/s_address_province" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/tv_address_province" android:layout_marginTop="5dip" android:entries="@array/provinces" android:prompt="@string/s_province" /&gt; &lt;/RelativeLayout&gt; &lt;!-- City Label --&gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="25dip" android:layout_weight="1" &gt; &lt;TextView android:id="@+id/tv_address_city" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:text="@string/tv_city" android:textColor="#000000" /&gt; &lt;TextView android:id="@+id/tv_address_errorCity" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:text="@string/require" android:textColor="#FF0000" /&gt; &lt;Spinner android:id="@+id/s_address_city" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/tv_address_city" android:layout_marginTop="5dip" android:prompt="@string/s_city" /&gt; &lt;/RelativeLayout&gt; &lt;!-- Street Label --&gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="25dip" android:layout_weight="1" &gt; &lt;TextView android:id="@+id/tv_address_street" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:text="@string/tv_street" android:textColor="#000000" /&gt; &lt;TextView android:id="@+id/tv_address_errorStreet" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:text="@string/require" android:textColor="#FF0000" /&gt; &lt;Spinner android:id="@+id/s_address_street" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/tv_address_street" android:layout_marginTop="5dip" android:prompt="@string/s_street" /&gt; &lt;/RelativeLayout&gt; &lt;/LinearLayout&gt; &lt;!-- Save Cancel Label --&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_marginTop="25dip" android:background="#000000" android:orientation="horizontal" android:weightSum="2" &gt; &lt;Button android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/b_save" /&gt; &lt;Button android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/b_cancel" /&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; &lt;/ScrollView&gt; </code></pre> <p><img src="https://i.stack.imgur.com/VpvOU.png" alt="enter image description here"></p>
    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