簡體   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