Issue 182191: Adjustpan works only first time if EditText's gravity is center or center_horizontal

Reported by  DodoEnte...@gmail.comAug 7, 2015
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
Project Member #1 al...@android.com
(No comment was entered for this change.)
Status: Assigned 
Owner: r...@google.com 
Cc: roozbeh@google.com 
Aug 7, 2015
Project Member #2 roozbeh@google.com
(No comment was entered for this change.)
Cc: k...@google.com 
Oct 9, 2015
#3 williamj...@gmail.com
Any fixes for this except removing the gravity line!
Dec 9, 2015
#4 j...@indeed.com
Removing the gravity doesn't help in Android 6.0

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值