Recycleview child 被键盘覆盖
Recycleview child covered by keyboard
我有一个 activity 有 RecycleView。
此 RecycleView 的 Child 在 radioGroup 中包含单选按钮,当最后一个单选按钮被选中时,它会显示 EditText。
这是布局:
<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>
当我向下滚动到最后一个 child 时出现问题。被键盘盖住了
这是每个单元格的布局:
<LinearLayout>
<RadioGroup/>
<EditText/>
</LinearLayout>
我已经尝试使用 "AdjustResize",应该会在出现键盘时调整 ui 的大小。但是最后的child还是被覆盖了。
有人有其他解决方案吗?
尝试android:windowSoftInputMode="adjustPan"
我从这个 post Look the honeal's answer 中得到了解决方案。
所以基本上你不能在使用 "AdjustResize"
时将 activity 设置为全屏(在你的主题中)
我有一个 activity 有 RecycleView。 此 RecycleView 的 Child 在 radioGroup 中包含单选按钮,当最后一个单选按钮被选中时,它会显示 EditText。 这是布局:
<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>
当我向下滚动到最后一个 child 时出现问题。被键盘盖住了
这是每个单元格的布局:
<LinearLayout>
<RadioGroup/>
<EditText/>
</LinearLayout>
我已经尝试使用 "AdjustResize",应该会在出现键盘时调整 ui 的大小。但是最后的child还是被覆盖了。 有人有其他解决方案吗?
尝试android:windowSoftInputMode="adjustPan"
我从这个 post Look the honeal's answer 中得到了解决方案。 所以基本上你不能在使用 "AdjustResize"
时将 activity 设置为全屏(在你的主题中)