My application is a chat application, and its user interface:
Application title
View list
Chat, input field and submit button
But the problem is that when I click on the edit text, a soft keyboard appears and pushes everything, but I need a title so that it stays on the screen. I have added simplified problem images and user interface code here . (I cannot post multiple links or images in this post because I'm new to Stack Overflow.)
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <TextView android:text="Header contents" android:layout_width="fill_parent" android:textSize="20sp" android:gravity="center_horizontal" android:layout_height="wrap_content" /> <ListView android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" /> <EditText android:text="" android:layout_gravity="bottom" android:id="@+id/EditText01" android:layout_width="fill_parent" android:layout_height="wrap_content"></EditText> </LinearLayout>
Android has this requirement in the default messaging application.
Does anyone have any ideas?
source share