Listview Items Hide Behind The Edittext. Need Whatsapp Like Chat Activity
I am having trouble in my layout implementation. Whenever I click on the edittext the softinput keyboard appears and hides the listview items, what i need is that whenever soft key
Solution 1:
Got the solution....
mListView.setTransctiptMode(ListView.TRANSCRIPT_MODE_NORMAL);
did the trick :)
Solution 2:
Try LinearLayou something like this:
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"xmlns:app="http://schemas.android.com/apk/res-auto"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical" ><ListViewandroid:id="@+id/lv_listView"android:layout_width="match_parent"android:layout_height="0dp"android:layout_weight="1"android:clipToPadding="false"android:divider="@android:color/transparent"android:dividerHeight="12dp"android:paddingBottom="12dp"android:scrollbars="none"android:stackFromBottom="true" ></ListView><Viewandroid:id="@+id/line_separator"android:layout_width="match_parent"android:layout_height="1dp"android:layout_marginLeft="10dp"android:layout_marginRight="10dp"android:background="#1F000000" /><LinearLayoutandroid:id="@+id/ll_editText"android:layout_width="match_parent"android:layout_height="wrap_content"android:orientation="horizontal"android:padding="8dp" ><EditTextandroid:id="@+id/et_editText"android:layout_width="0dp"android:layout_height="wrap_content"android:layout_gravity="center_vertical"android:layout_weight="1"android:hint="text"android:maxLines="4" /><Viewandroid:layout_width="1dp"android:layout_height="match_parent"android:layout_marginLeft="5dp"android:background="#1F000000" /><Buttonandroid:id="@+id/btn_Button_send"android:layout_width="48dp"android:layout_height="match_parent"android:layout_gravity="center_vertical"android:background="@android:color/transparent"android:textSize="24sp" /></LinearLayout><Buttonandroid:id="@+id/btn_Button"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_marginBottom="5dp"android:layout_marginRight="5dp"android:background="#A0000000"android:paddingLeft="2dp"android:paddingRight="2dp"android:text="2 new messages"android:textColor="@android:color/white"android:textSize="14sp"android:visibility="gone" /></LinearLayout>
Post a Comment for "Listview Items Hide Behind The Edittext. Need Whatsapp Like Chat Activity"