OSDN Git Service

Bug 4382356: No automatic focus change in ScrollViews
authorGilles Debunne <debunne@google.com>
Fri, 15 Jul 2011 16:56:30 +0000 (09:56 -0700)
committerGilles Debunne <debunne@google.com>
Fri, 15 Jul 2011 17:00:50 +0000 (10:00 -0700)
commit8202cd3602b87634eeb8b2729612d96f8dbf9416
treec97cae49a19b318cb9a4f353f208e5b8d812e432
parentf382dc2d97e22f6bcce7aa8250d797edc616719e
Bug 4382356: No automatic focus change in ScrollViews

The current behavior in ScrollView is inconsistent: a slow scroll will
not change focus while a fling will. With this change, the focus is not
moved from field to field (resulting in poup due to keyboard / suggestion bar
state changes).

Also made sure any new input in a TextFields scrolls back the view to make the
EditText visible. Has no effect if the EditText is already visible.

Change-Id: I7ff301fe85f73c27d76e4893aeab7442d0539b13
core/java/android/widget/ScrollView.java
core/java/android/widget/TextView.java