Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing RelativeLayout inside ScrollView doesn't yield in scrolling
    primarykey
    data
    text
    <p>I'm trying to get my relative layout to scroll. I added the scroll view as a parent but when I tilt the phone, or emulator to horizontal, it doesn't scroll.</p> <p>I've tried a few different solutions but none of them seem to work. Some include: <a href="https://stackoverflow.com/questions/7900842/no-scrolling-in-scrollview">No scrolling in scrollview</a>, <a href="https://stackoverflow.com/questions/7349022/scrollview-not-working-relative-layout">ScrollView not Working - Relative Layout</a>, and <a href="https://stackoverflow.com/questions/8321063/relativelayout-with-scrollview-not-scrolling">RelativeLayout with scrollview not scrolling</a></p> <p>The code is the following:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/ScrollView01" android:layout_width="fill_parent" android:layout_height="fill_parent" android:fillViewport="true" android:scrollbars="none"&gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"&gt; &lt;Button android:layout_width="200dp" android:id="@+id/register_button" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:text="Register" /&gt; &lt;EditText android:id="@+id/email2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_above="@+id/register_button" android:layout_alignLeft="@+id/register_button" android:layout_alignRight="@+id/register_button" android:hint="Re-Enter Email" android:inputType="textEmailAddress" /&gt; &lt;EditText android:id="@+id/email1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_above="@+id/email2" android:layout_alignLeft="@+id/email2" android:layout_alignRight="@+id/email2" android:hint="Email" android:inputType="textEmailAddress" /&gt; &lt;EditText android:id="@+id/password2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_above="@+id/email1" android:layout_alignLeft="@+id/email1" android:layout_alignRight="@+id/email1" android:hint="Repeat Password" android:inputType="textPassword" /&gt; &lt;EditText android:id="@+id/password1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_above="@+id/password2" android:layout_alignLeft="@+id/password2" android:layout_alignRight="@+id/password2" android:hint="Password" android:inputType="textPassword" /&gt; &lt;EditText android:id="@+id/lastName" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_above="@+id/password1" android:layout_alignLeft="@+id/password1" android:layout_alignRight="@+id/password1" android:hint="Last Name" android:imeOptions="actionNext" android:inputType="textPersonName" /&gt; &lt;EditText android:id="@+id/firstName" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_above="@+id/lastName" android:layout_alignLeft="@+id/lastName" android:layout_alignRight="@+id/lastName" android:hint="First Name" android:imeOptions="actionNext" android:inputType="textPersonName" /&gt; &lt;EditText android:id="@+id/userName" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_above="@+id/firstName" android:layout_alignLeft="@+id/firstName" android:layout_alignRight="@+id/firstName" android:hint="Username" android:imeOptions="actionNext" android:inputType="textPersonName" /&gt; &lt;/RelativeLayout&gt; &lt;/ScrollView&gt; </code></pre> <p>Thanks!</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.
 

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