QMUIContinuousNestedScrollLayout 键盘问题

作者: victorfan336创建于 2022年1月7日更新于 2023年6月13日

Running environment

  • Device model: Redmi 10X
  • Device system version: Android 10
  • Gradle version: 7.0.2
  • QMUI Android version: 2.0.0-alpha10

Specific problem description

Refer to the QDContinuousNestedScroll6Fragment class in the demo, the LinearLayout + recyclerview in the QMUIContinuousNestedScrollLayout, and implement the interface effect of a header + recyclerview scrolling. The most outer layer of the xml layout uses QMUIWindowInsetLayout2, the most outer layer of the header uses QMUIContinuousNestedTopLinearLayout, and the recyclerview uses QMUIContinuousNestedBottomRecyclerView. Refer to the demo for other code layout settings. Scrolling into the page is normal, but in my interface, each item has an EditText that needs to be entered. After clicking the bottom input box, either the input box is obscured, or the keyboard pops up and automatically closes. Then I modified the layout code of the adapter in the LinearLayout + recyclerview in QMUIContinuousNestedScrollLayout, and found the same problem.

内容来源: Tencent/QMUI_Android