Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid How to adjust layout in Full Screen Mode when softkeyboard is visible
    primarykey
    data
    text
    <p>I have researched a lot to adjust the layout when softkeyboard is active and I have successfully implemented it but the problem comes when I use <code>android:theme="@android:style/Theme.NoTitleBar.Fullscreen"</code> this in my activity tag in manifest file.</p> <p>For this I have used <code>android:windowSoftInputMode="adjustPan|adjustResize|stateHidden"</code> with different options but no luck.</p> <p>After that I implemented <code>FullScreen</code> programmatically and tried various layout to work with <code>FullScreen</code> but all in vain.</p> <p>I referred these links and have looked many posts here related to this issue:</p> <p><a href="http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html">http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html</a></p> <p><a href="http://davidwparker.com/2011/08/30/android-how-to-float-a-row-above-keyboard/">http://davidwparker.com/2011/08/30/android-how-to-float-a-row-above-keyboard/</a></p> <p>Here is xml code:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout android:id="@+id/masterContainerView" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android" android:background="#ffffff"&gt; &lt;ScrollView android:id="@+id/parentScrollView" android:layout_width="fill_parent" android:layout_height="wrap_content"&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"&gt; &lt;TextView android:id="@+id/setup_txt" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Setup - Step 1 of 3" android:textColor="@color/top_header_txt_color" android:textSize="20dp" android:padding="8dp" android:gravity="center_horizontal" /&gt; &lt;TextView android:id="@+id/txt_header" android:layout_width="fill_parent" android:layout_height="40dp" android:text="AutoReply:" android:textColor="@color/top_header_txt_color" android:textSize="14dp" android:textStyle="bold" android:padding="10dp" android:layout_below="@+id/setup_txt" /&gt; &lt;EditText android:id="@+id/edit_message" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Some text here." android:textSize="16dp" android:textColor="@color/setting_editmsg_color" android:padding="10dp" android:minLines="5" android:maxLines="6" android:layout_below="@+id/txt_header" android:gravity="top" android:scrollbars="vertical" android:maxLength="132" /&gt; &lt;ImageView android:id="@+id/image_bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@+id/edit_message" /&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; &lt;RelativeLayout android:id="@+id/scoringContainerView" android:layout_width="fill_parent" android:layout_height="50px" android:orientation="vertical" android:layout_alignParentBottom="true" android:background="#535254"&gt; &lt;Button android:id="@+id/btn_save" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_marginTop="7dp" android:layout_marginRight="15dp" android:layout_below="@+id/edit_message" android:text = "Save" /&gt; &lt;Button android:id="@+id/btn_cancel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7dp" android:layout_marginRight="10dp" android:layout_below="@+id/edit_message" android:layout_toLeftOf="@+id/btn_save" android:text = "Cancel" /&gt; &lt;/RelativeLayout&gt; &lt;/RelativeLayout&gt; </code></pre> <p><img src="https://i.stack.imgur.com/uAu3l.png" alt="enter image description here"> </p> <p>I want the bottom 2 buttons should go upward when the softkeyboard comes in picture.</p> <p><img src="https://i.stack.imgur.com/Uaw7Q.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.
 

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