Android - EditText 編輯時,導致整個視窗上移被ActionBar擋住問題處理

摘要:Android - EditText 編輯時,導致整個視窗上移被ActionBar擋住問題處理

當EditText編輯時,會整個畫面被壓縮,Layout空間被彈出的來Keyboard擠壓。

而導致ActionBar擋住了EditText

 

因為看過另一個Acitivity的EditText並不會這樣,感覺疑惑,

到網路上查到解決方案:

http://stackoverflow.com/questions/4114132/android-soft-keyboard-pushes-layout-of-my-activity-out-of-screen

 

原因就在Manifest的Activity有沒有下

android:windowSoftInputMode="adjustPan"

有這一行,就不會有壓縮問題了。