This bug has originally appeared on StackOverflow: https://stackoverflow.com/questions/15317157/android-adjustpan-not-working-after-the-first-time/26017060#26017060 To reproduce the bug: 1.) add EditText to your activity near the bottom of it (so it would be covered by keyboard if activity is not panned) 2.) set its gravity attribute to 'center' or 'center_horizontal' 3.) in AndroidManifest.xml set activity's attribute android:windowSoftInputMode="adjustPan" 4.) run the app and tap the edit text -> keyboard is opened, activity is panned and editText is visible 5.) tap the back button to hide the keyboard -> activity is normally displayed 6.) tap the edit text again -> keyboard is opened and covers the edit text; activity is not panned Note that if EditText's gravity is not set to either 'center' or 'center_horizontal', this cannot be reproduced. We noticed the bug on Android 4.1, 5.0 and 5.1.
Aug 7, 2015
(No comment was entered for this change.)
Cc: k...@google.com
Oct 9, 2015
Any fixes for this except removing the gravity line!
Dec 9, 2015
Removing the gravity doesn't help in Android 6.0 |
Issue 182191: Adjustpan works only first time if EditText's gravity is center or center_horizontal
最新推荐文章于 2020-12-24 14:44:35 发布
Owner: r...@google.com
Cc: roozbeh@google.com