[英]EditText focus is not working in android studio, i want to hide a textview when focus change in edittext, how to do this?
[英]How do I make an EditText raise along with the keyboard when in focus?
使用RelativeLayout
並使用android:layout_alignParentBottom="true"
放置EditText
,然后在顯示鍵盤時自動引發。
//在清單xml文件中嘗試windowsoftinput模式。
android:windowSoftInputMode="adjustResize"
adjustResize 0x10始終調整窗口大小:窗口的內容區域縮小,以便為軟輸入區域騰出空間
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.