Hello.
There is a Layout in which there is a RecyclerView and a Footer tied to the bottom of the screen. The markup itself:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v7.widget.RecyclerView android:id="@+id/listChat" android:layout_width="match_parent" android:layout_height="wrap_content" android:scrollbars="vertical" android:overScrollMode="never" android:layout_above="@+id/listFooter"/> <LinearLayout android:id="@+id/listFooter" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:orientation="horizontal"> <EditText android:id="@+id/messageInput" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:inputType="textShortMessage" android:lines="1" android:singleLine="true" android:hint="Введите сообщение"/> <ImageButton android:id="@+id/sendButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@android:drawable/ic_menu_send" /> </LinearLayout> In the manifest:
<activity android:name=".MessagingActivity" android:label="@string/app_name" android:theme="@style/AppTheme" android:windowSoftInputMode="adjustResize" /> The problem is that I cannot bring the RecyclerView to a lower state when I open the keyboard. Those. its position remains the same as before the opening of the keyboard. Before that there was a ListView and everything worked fine.
If it is visual, then initially it looks like this:
Clicking on EditText now looks like this:
But you need to look like this:
Tried to put onClickListener on EditText and with a delay to cause
recyclerView.scrollToPosition(chatRecyclerAdapter.getItemCount() - 1); But it works every other time. I also tried to change various attributes of RecyclerView , but did not bring success. Perhaps someone knows how to implement it.
Thank you in advance for your response.



android:stackFromBottom="true"for RecyclerView. - Yura IvanovadjustPaninstead ofadjustResizetry? - Yuriy SPb ♦toolbaralways hidden when usingadjustPan? - ahgpoug