简体   繁体   中英

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

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

In your manifest file under your current activity, write following code:

android:windowSoftInputMode="adjustPan"

Your Activity in manifest will look somewhat like this:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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