OSDN Git Service

Fixing errors in position information of scrollable views reported for accessibility.
authorSvetoslav Ganov <svetoslavganov@google.com>
Thu, 6 Oct 2011 05:26:05 +0000 (22:26 -0700)
committerSvetoslav Ganov <svetoslavganov@google.com>
Thu, 6 Oct 2011 21:42:58 +0000 (14:42 -0700)
commitd9ee72fddb8be40e414a831fb80458dc48699613
tree5423e4747eeacc268c11ecff9487e5c2d28d2ea0
parente921572bda621b75a217bce115c2b605caf9b26a
Fixing errors in position information of scrollable views reported for accessibility.

1. ScrollView/HorizontalScroll view were reporting only the scroll X and Y but
   failed to convey the max scroll along X and Y so the position can be determined.

2. WebView was not reporting correctly its scroll position for accessibility.

3. Some descendants of AdapterView were reporting incorrect position information.

4. Updated the accessibility docs with some details about the scroll information.

5. Cleaned up duplicated code.

bug:5412132
bug:5412265

Change-Id: I165e73ecde027dad811425b9f395a3f758c923ba
core/java/android/view/View.java
core/java/android/view/accessibility/AccessibilityEvent.java
core/java/android/view/accessibility/AccessibilityRecord.java
core/java/android/webkit/WebView.java
core/java/android/widget/AbsListView.java
core/java/android/widget/AdapterView.java
core/java/android/widget/Gallery.java
core/java/android/widget/HorizontalScrollView.java
core/java/android/widget/ListView.java
core/java/android/widget/ScrollView.java