Recyclerview 项目不可见/键盘可见时丢失

Recyclerview items invisible/ Missing when keyboard is visible

问题:

我的 recyclerview 项目有一个编辑文本。

如果用户编辑 edittext -> 键盘将出现并且一些列表项丢失。(意味着 recyclerview 在键盘关闭后打开键盘时缩小 recyclerview 不展开)

我的xml设计

<ScrollView>
<ConstraintLayout>
  <other views>
  <recyclerview/>
</ConstraintLayout>
</ScrollView>

清单activity windowSoftInputMode

 android:windowSoftInputMode="adjustPan"

尝试了很多 google & SO。但没有运气。任何人给我解决方案。如果有人需要更多信息,请告诉我。我会提供更多细节。

更新:

我的 xml 代码 - https://pastebin.com/diz4t9mp

我的问题 - 视频参考

https://drive.google.com/file/d/15J4hOnCM7Gu6uvklhzlSSD7XUCmmGmzg/view?usp=sharing

改变这个

<ScrollView>
<ConstraintLayout>
  <other views>
  <recyclerview/>
</ConstraintLayout>
</ScrollView>

<android.support.v4.widget.NestedScrollView>
<ConstraintLayout>
  <other views>
  <recyclerview/>
</ConstraintLayout>
</android.support.v4.widget.NestedScrollView>

NestedScrollView is used when there is a need for a scrolling view inside another scrolling view. Normally this would be difficult to accomplish since the system would be unable to decide which view to scroll , it supports acting as both a nested scrolling parent and child on both new and old versions of Android.