考虑以下视图示例:
<LinearLayout>
<EditText />
<Button />
</LinearLayout>在清单文件中:
android:windowSoftInputMode="adjustPan"在onfocus edittext中,软键盘覆盖一个按钮,如下所示:

但我希望是这样的:

如何更多地滚动视图以使按钮可见?
发布于 2013-09-21 02:31:58
我刚找到这篇文章,看到它没有回复。为了帮助其他可能在清单中使用它进行活动的人
android:windowSoftInputMode="stateUnchanged|adjustResize"只尝试一个,看看它是否适合您的需求。
祝好运
发布于 2013-08-03 07:52:31
你能在按钮下面添加一个空的RelativeLayout吗?将其android:layout_height=设置为“50dp”或满足您需要的任何值。并使用ScrollView,请注意ScrollView只能有一个子布局。
<ScrollView >
<LinearLayout>
<EditText />
<Button />
<RelativeLayout
android:layout_height="50dp"
android:layout_width="match_parent" />
</LinearLayout>
</ScrollView>https://stackoverflow.com/questions/17423459
复制相似问题