Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid: EditText stays hidden behind the keyboard
    text
    copied!<p>Before writing this question I have read through the following answers/articles:</p> <ol> <li><a href="https://stackoverflow.com/questions/3295672/android-soft-keyboard-covers-edittext-field">Android soft keyboard covers edittext field</a> </li> <li><a href="https://stackoverflow.com/questions/1945002/android-keyboard-obscures-edittext">Android keyboard obscures EditText</a></li> <li><a href="http://developer.android.com/resources/articles/on-screen-inputs.html" rel="nofollow noreferrer">http://developer.android.com/resources/articles/on-screen-inputs.html</a></li> <li><a href="https://stackoverflow.com/questions/4559367/soft-keyboard-overlapping-with-edittext-field">Soft Keyboard Overlapping with EditText Field</a></li> </ol> <p>The Android soft keyboard is set by default to pan which means it will keep all the editable regions above the keyboard. However it does not pan <strong>enough</strong>. When I run it and press the edittext that is close to the bottom of the screen, the keyboard comes up and edittext is moved up but not enough to be able to see what is being typed in it. I have used/tried the following:</p> <ol> <li><p><code>android:windowSoftInputMode="adjustPan"</code> in the manifest of the Activity. This made no difference. I have also tried putting values of <code>adjustUnspecified</code> and <code>adjustResize</code> too. None of them works.</p></li> <li><p><code>&lt;uses-sdk android:minSdkVersion="3" /&gt;</code> in the manifest file. My application is targetted for sdk 2.1 and above. Even though, I tried it and did not work.</p></li> <li><p>Using a ScrollView. Does not work either.</p></li> </ol> <p>Is there a way to manually manage how much "panning" does a keyboard do when a specific edittext is pressed.</p> <p>Below is my xml file.</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#ffffff"&gt; &lt;ImageView android:id="@+id/header" android:layout_width="320dip" android:layout_height="86dip" android:background="@drawable/header_bg"&gt; &lt;/ImageView&gt; &lt;ImageView android:layout_width="320dip" android:layout_height="200dip" android:layout_alignParentBottom="true" android:background="@drawable/bg1_btm"&gt; &lt;/ImageView&gt; &lt;TextView android:text="Hostname" android:id="@+id/lbl_hostname" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/header"/&gt; &lt;TextView android:text="(Current)" android:id="@+id/lbl_hostname_current" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/lbl_hostname" android:layout_below="@id/header" /&gt; &lt;EditText android:text="EditText" android:id="@+id/editText_hostname" android:layout_below="@id/lbl_hostname" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLength="25"&gt; &lt;/EditText&gt; &lt;TextView android:text="Registration URL" android:id="@+id/lbl_registration" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/editText_hostname" /&gt; &lt;TextView android:text="(Current)" android:id="@+id/lbl_registration_current" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/editText_hostname" android:layout_toRightOf="@id/lbl_registration" /&gt; &lt;TextView android:text="http://" android:id="@+id/lbl_url_prefiz" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/lbl_registration" android:paddingTop="10dip" /&gt; &lt;EditText android:text="EditText" android:id="@+id/editText_registration" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf ="@id/lbl_url_prefiz" android:layout_below="@id/lbl_registration"&gt; &lt;/EditText&gt; &lt;TextView android:text="Chat" android:id="@+id/lbl_chat" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/editText_registration"/&gt; &lt;TextView android:text="(Current)" android:id="@+id/lbl_chat_current" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/editText_registration" android:layout_toRightOf="@id/lbl_chat"/&gt; &lt;EditText android:text="EditText" android:id="@+id/editText_chat" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/lbl_chat"&gt; &lt;/EditText&gt; &lt;TextView android:text="SSID" android:id="@+id/lbl_ssid" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/editText_chat" /&gt; &lt;TextView android:text="(Current)" android:id="@+id/lbl_ssid_current" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/editText_chat" android:layout_toRightOf="@id/lbl_ssid" /&gt; &lt;EditText android:text="EditText" android:id="@+id/editText_ssid" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/lbl_ssid" android:maxLines="1" android:inputType="text" android:layout_marginBottom="25dip"&gt; &lt;/EditText&gt; &lt;Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/ButtonSave" android:text="Save" android:layout_below="@id/editText_ssid" android:layout_alignParentLeft="true"&gt; &lt;/Button&gt; &lt;Button android:text="Continue" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/ButtonContinue" android:layout_below="@id/editText_ssid" android:layout_alignParentRight="true"&gt; &lt;/Button&gt; &lt;/RelativeLayout&gt; </code></pre>
 

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