Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to make views resized/panned when softkeyboard pop-on?
    text
    copied!<p>I have the following problem: I have an activity with a EditText on top and a toolbar on the bottom. When I select the EditText, the softkeyboard pops-on and hides the toolbar - but I want the EditText to be resized or panned, so I can see the toolbar while using the softkeyboard.<br> I've read the following article:<br> <a href="http://developer.android.com/resources/articles/on-screen-inputs.html" rel="nofollow">http://developer.android.com/resources/articles/on-screen-inputs.html</a><br> and set the attribute windowSoftInputMode: </p> <pre><code>android:windowSoftInputMode="adjustResize" </code></pre> <p>it just doesn't work. Then I also tried to set it to "adjustPan" - it doesn't work either. Here is the full layout:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout android:id="@+id/widget28" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:background="#eceef2" xmlns:android="http://schemas.android.com/apk/res/android" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/my_border2" android:orientation="horizontal" &gt; &lt;ImageButton android:id="@+id/ibtnCancel" android:layout_width="42px" android:layout_height="44px" android:src="@drawable/ico_reload" android:background="@drawable/buttonhighlight" &gt; &lt;/ImageButton&gt; &lt;ImageView android:id="@+id/imvLogo" android:layout_weight="1" android:layout_width="fill_parent" android:layout_height="44px" android:src="@drawable/stub" android:scaleType="fitCenter" android:background="@drawable/my_border" /&gt; &lt;ImageButton android:id="@+id/ibtnOK" android:layout_width="42px" android:layout_height="44px" android:src="@drawable/ico_reload" android:background="@drawable/buttonhighlight" &gt; &lt;/ImageButton&gt; &lt;/LinearLayout&gt; &lt;FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:background="@drawable/my_border2" android:orientation="vertical" &gt; &lt;EditText android:id="@+id/etComment" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:gravity="top" android:hint="Bạn đang nghĩ gì?" android:textSize="18sp" &gt; &lt;/EditText&gt; &lt;GridView android:id="@+id/gvEmoIcons" android:background="#88000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:numColumns="auto_fit" android:verticalSpacing="10dp" android:horizontalSpacing="10dp" android:columnWidth="54dp" android:stretchMode="columnWidth"&gt; &lt;/GridView&gt; &lt;/FrameLayout&gt; &lt;!-- Emo icons bar --&gt; &lt;LinearLayout android:id="@+id/llIconsBar" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" &gt; &lt;ImageButton android:id="@+id/ibOpenSmileys" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/smile_smile" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>I've search for hours for this problem but haven't found the solution yet ! I appreciate your help. </p> <p>Thanks,<br> Son</p>
 

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