Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid ScrollView refuses to scroll to bottom
    primarykey
    data
    text
    <p>I have a root scrollview element with a relativelayout in it, and a bunch of form elements inside the relative layout.</p> <p>For some reason, when the soft keyboard is up it seems unable to scroll all the way to the bottom, which cuts one of my buttons in half.</p> <p>Here is a screenshot of the hierarchy viewer to demonstrate what I mean.</p> <p><img src="https://i.stack.imgur.com/d8nbP.png" alt="enter image description here"></p> <p>As you can see, the system knows that the view continues past the keyboard, yet the scrollview (which fills the visible part of the screen correctly) won't continue to scroll down as it should.</p> <p>I have <code>android:windowSoftInputMode="adjustResize"</code> in the manifest for the activity, and I can/will not switch it to pan.</p> <p>Any help is appreciated.</p> <p>edit: I am seeing this in more than 1 view. Here is the xml of another view with the same problem:</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="wrap_content" android:background="@drawable/background" &gt; &lt;RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="32dp" &gt; &lt;EditText android:id="@+id/reset_oldpass" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:ems="10" android:singleLine="true" android:hint="@string/current_password" android:layout_marginTop="16dp" /&gt; &lt;EditText android:id="@+id/reset_pass1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_below="@+id/reset_oldpass" android:ems="10" android:hint="@string/reset_new_pass" android:inputType="textPassword" android:layout_marginTop="16dp" /&gt; &lt;EditText android:id="@+id/reset_pass2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_below="@+id/reset_pass1" android:ems="10" android:hint="@string/reset_confirm_pass" android:inputType="textPassword" android:layout_marginTop="16dp" /&gt; &lt;TextView android:id="@+id/reset_forgot_password" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_below="@+id/reset_pass2" android:layout_marginTop="16dp" android:textColor="@color/Link" android:textStyle="bold" android:text="@string/Login_forgot_password" /&gt; &lt;Button android:id="@+id/reset_reset_password_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/reset_forgot_password" android:layout_centerHorizontal="true" android:layout_marginTop="16dp" android:layout_marginBottom="32dp" android:text="@string/reset_change_pass" /&gt; &lt;/RelativeLayout&gt; &lt;/ScrollView&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.
    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