I have activity with the editText field almost at the bottom. when I focus on this editText field, the keyboard appears and pushes my edittext field up.
when it stops, there is no space between editText and my soft keyboard.
Can I add some stock?
this is my code:
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/bg_yellow" android:orientation="vertical" > <RelativeLayout android:layout_width="match_parent" android:layout_height="100dp" android:layout_gravity="bottom" android:layout_alignParentBottom="true" android:paddingTop="25dp" > <RelativeLayout android:layout_width="340dp" android:layout_height="100dp" android:layout_centerHorizontal="true" > <EditText android:layout_width="340dp" android:layout_height="45dp" android:background="@drawable/edit_text_field" android:inputType="text" /> </RelativeLayout> </RelativeLayout>
editText field position before keyboard appears: http://postimg.org/image/826fwy18z/
and the image when the keyboard is displayed, without a space between the cursor and the keyboard: http://postimg.org/image/97qlfb4zx/
android xml
Jan verhagen
source share