Note that there are some explanatory texts on larger screens.

plurals
  1. POSoftkeyboard moves button in LinearLayout
    primarykey
    data
    text
    <p>Hi I'm designing a navigation application for as a Uni project. I'm having problems with getting the button to stay underneath the soft keyboard when it appears. I'm using LinearLayout as a frame. I've searched a lot and tried different techniques but nothing seems to work.</p> <p><a href="http://i.imgur.com/E1I9F.png" rel="nofollow">a picture of the problem</a> <br></p> <p>Here is my XML file:</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" &gt; &lt;LinearLayout android:layout_width="0px" android:layout_height="0px" android:focusable="true" android:focusableInTouchMode="true" /&gt; &lt;requestFocus /&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" android:orientation="vertical" &gt; &lt;EditText android:id="@+id/navi_searchfield1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:ems="10" android:hint="Current location" &gt; &lt;/EditText&gt; &lt;ListView android:id="@+id/navi_listview1" android:layout_width="fill_parent" android:layout_height="0dp"&gt; &lt;/ListView&gt; &lt;EditText android:id="@+id/navi_searchfield2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:ems="10" android:hint="Destination" /&gt; &lt;ListView android:id="@+id/navi_listview2" android:layout_width="fill_parent" android:layout_height="wrap_content" &gt; &lt;/ListView&gt; &lt;/LinearLayout&gt; &lt;Button android:id="@+id/start_navigation" android:layout_width="fill_parent" android:layout_height="40dip" android:background="@drawable/start" android:textColor="#ffffff" android:text="Start navigation" /&gt; &lt;/LinearLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
    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