繁体   English   中英

在我的布局中,当我单击编辑文本时,在编辑文本下方有一个编辑文本和一个按钮,然后在软输入上方显示布局

[英]In my layout one edit text and one button below edit text when i click on edit text then layout show above the soft input

在我的布局中,当我单击编辑文本时,在编辑文本下方有一个编辑文本和一个按钮,然后在软输入上方显示布局

在当前活动下的清单文件中,编写以下代码:

android:windowSoftInputMode="adjustPan"

您在清单中的 Activity 看起来像这样:

 <activity
        android:name="Your.Activity.Name"
        android:launchMode="singleTop"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="adjustPan"/>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM