虛擬鍵盤彈出時擋住EditText的解決方案

   最好的解決方案:在AndroidManifest.xml中activity節點添加下列:


   android:windowSoftInputMode="adjustResize"


   默認顯示輸入法:


   android:windowSoftInputMode="stateVisible "


   默認隱藏輸入法:


      android:windowSoftInputMode="adjustUnspecified|stateHidden"



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章