0

Please find the xml Layout below

layout.xml

<?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="match_parent">
    <include
        layout="@layout/toolbar_common"/>
    

            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/chatRecycler"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_above="@+id/footer"
                android:layout_below="@+id/appbarlayout"
                android:background="@color/light_grey"/>

            <LinearLayout
                android:id="@+id/footer"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:layout_alignParentBottom="true">
                <androidx.appcompat.widget.AppCompatEditText
                    android:id="@+id/msgEt"
                    android:layout_width="0dp"
                    android:layout_height="45dp"
                    android:layout_weight=".9"
                    android:maxLines="1"
                    android:minLines="1"
                    android:lines="1"
                    android:inputType="text"
                    android:imeOptions="actionSend"
                    />
                <Button
                    android:id="@+id/sendBtn"
                    android:layout_width="80dp"
                    android:layout_height="wrap_content"
                    android:textColor="@color/white"
                    android:background="@color/colorPrimary"
                    android:text="send"/>
            </LinearLayout>

</RelativeLayout>

image1

[image22

appukrb
  • 1,507
  • 4
  • 24
  • 53

1 Answers1

0

I think you are using AdjustPan like android:windowSoftInputMode="AdjustPan" or android:windowSoftInputMode="adjustPan|adjustResize"


You should use adjustResize there


see Difference between adjustResize and adjustPan in android? for understand android:windowSoftInputMode

Jyotish Biswas
  • 674
  • 5
  • 11