键盘覆盖的Recycleview孩子

时间:2018-11-09 08:06:40

标签: android android-recyclerview android-softkeyboard

我有一个具有RecycleView的活动。 此RecycleView的子级在radioGroup中包含单选按钮,当最后一个单选按钮被选中时,该单选按钮将显示EditText。 这是布局:

doReturn({Future subclass instance}).when({reference spyImporter}).get(anyInt(),xx)

当我向下滚动到最后一个孩子时,就会发生问题。它被键盘覆盖。

这是每个单元格的布局:

<LinearLayout>
<Toolbar/>

<RelativeLayout
width:match_parent
height:match_parent>
    <RecycleView
    width:match_parent
    height:match_parent
    above:footer/>
    <LinearLayout
      id:footer
      width:match_parent
      height:wrap_content>
       <Button/>
    </LinearLayout>
</RelativeLayout>

</LinearLayout>

我尝试使用“ AdjustResize”,当键盘出现时,应该调整ui的大小。但是最后一个孩子仍然被掩盖。 有人有其他解决方案吗?

2 个答案:

答案 0 :(得分:0)

尝试android:windowSoftInputMode="adjustPan"

答案 1 :(得分:0)

我从这篇Look the honeal's answer帖子中获得了解决方案。 因此,基本上,您无法在使用“ AdjustResize”时将活动设置为全屏显示(在您的主题中)

相关问题