1.activity android:windowSoftInputMode="adjustPan" />
2. getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
3.linearLayoutManager.setStackFromEnd(true);
《====
1、在manifest中的activity中配置android:windowSoftInputMode="adjustPan";
2、在recyclerview的布局代码中添加android:descendantFocusability="beforeDescendants"
3、在adapter里面的onBindViewHolder函数中使用 //强行关闭复用holder.setIsRecyclable(false);
===》