|
79 | 79 | * <li>{@link #isPassword()} - Whether the source is password.</li> |
80 | 80 | * <li>{@link #isChecked()} - Whether the source is checked.</li> |
81 | 81 | * <li>{@link #getContentDescription()} - The content description of the source.</li> |
| 82 | + * <li>{@link #getScrollX()} - The offset of the source left edge in pixels |
| 83 | + * (without descendants of AdapterView).</li> |
| 84 | + * <li>{@link #getScrollY()} - The offset of the source top edge in pixels |
| 85 | + * (without descendants of AdapterView).</li> |
| 86 | + * <li>{@link #getFromIndex()} - The zero based index of the first visible item of the source, |
| 87 | + * inclusive (for descendants of AdapterView).</li> |
| 88 | + * <li>{@link #getToIndex()} - The zero based index of the last visible item of the source, |
| 89 | + * inclusive (for descendants of AdapterView).</li> |
| 90 | + * <li>{@link #getItemCount()} - The total items of the source |
| 91 | + * (for descendants of AdapterView).</li> |
82 | 92 | * </ul> |
83 | 93 | * </p> |
84 | 94 | * <p> |
|
97 | 107 | * <li>{@link #isPassword()} - Whether the source is password.</li> |
98 | 108 | * <li>{@link #isChecked()} - Whether the source is checked.</li> |
99 | 109 | * <li>{@link #getContentDescription()} - The content description of the source.</li> |
| 110 | + * <li>{@link #getScrollX()} - The offset of the source left edge in pixels |
| 111 | + * (without descendants of AdapterView).</li> |
| 112 | + * <li>{@link #getScrollY()} - The offset of the source top edge in pixels |
| 113 | + * (without descendants of AdapterView).</li> |
| 114 | + * <li>{@link #getFromIndex()} - The zero based index of the first visible item of the source, |
| 115 | + * inclusive (for descendants of AdapterView).</li> |
| 116 | + * <li>{@link #getToIndex()} - The zero based index of the last visible item of the source, |
| 117 | + * inclusive (for descendants of AdapterView).</li> |
| 118 | + * <li>{@link #getItemCount()} - The total items of the source |
| 119 | + * (for descendants of AdapterView).</li> |
100 | 120 | * </ul> |
101 | 121 | * </p> |
102 | 122 | * <p> |
|
117 | 137 | * <li>{@link #getItemCount()} - The number of selectable items of the source.</li> |
118 | 138 | * <li>{@link #getCurrentItemIndex()} - The currently selected item index.</li> |
119 | 139 | * <li>{@link #getContentDescription()} - The content description of the source.</li> |
| 140 | + * <li>{@link #getScrollX()} - The offset of the source left edge in pixels |
| 141 | + * (without descendants of AdapterView).</li> |
| 142 | + * <li>{@link #getScrollY()} - The offset of the source top edge in pixels |
| 143 | + * (without descendants of AdapterView).</li> |
| 144 | + * <li>{@link #getFromIndex()} - The zero based index of the first visible item of the source, |
| 145 | + * inclusive (for descendants of AdapterView).</li> |
| 146 | + * <li>{@link #getToIndex()} - The zero based index of the last visible item of the source, |
| 147 | + * inclusive (for descendants of AdapterView).</li> |
| 148 | + * <li>{@link #getItemCount()} - The total items of the source |
| 149 | + * (for descendants of AdapterView).</li> |
120 | 150 | * </ul> |
121 | 151 | * </p> |
122 | 152 | * <p> |
|
137 | 167 | * <li>{@link #getItemCount()} - The number of focusable items on the screen.</li> |
138 | 168 | * <li>{@link #getCurrentItemIndex()} - The currently focused item index.</li> |
139 | 169 | * <li>{@link #getContentDescription()} - The content description of the source.</li> |
| 170 | + * <li>{@link #getScrollX()} - The offset of the source left edge in pixels |
| 171 | + * (without descendants of AdapterView).</li> |
| 172 | + * <li>{@link #getScrollY()} - The offset of the source top edge in pixels |
| 173 | + * (without descendants of AdapterView).</li> |
| 174 | + * <li>{@link #getFromIndex()} - The zero based index of the first visible item of the source, |
| 175 | + * inclusive (for descendants of AdapterView).</li> |
| 176 | + * <li>{@link #getToIndex()} - The zero based index of the last visible item of the source, |
| 177 | + * inclusive (for descendants of AdapterView).</li> |
| 178 | + * <li>{@link #getItemCount()} - The total items of the source |
| 179 | + * (for descendants of AdapterView).</li> |
140 | 180 | * </ul> |
141 | 181 | * </p> |
142 | 182 | * <p> |
|
218 | 258 | * <li>{@link #getEventTime()} - The event time.</li> |
219 | 259 | * <li>{@link #getText()} - The text of the source's sub-tree.</li> |
220 | 260 | * <li>{@link #isEnabled()} - Whether the source is enabled.</li> |
221 | | - * <li>{@link #getScrollX()} - The horizontal offset of the source |
222 | | - * (without descendants of AdapterView)).</li> |
223 | | - * <li>{@link #getScrollY()} - The vertical offset of the source |
224 | | - * (without descendants of AdapterView)).</li> |
225 | | - * <li>{@link #getFromIndex()} - The index of the first visible item of the source |
226 | | - * (for descendants of AdapterView).</li> |
227 | | - * <li>{@link #getToIndex()} - The index of the last visible item of the source |
228 | | - * (for descendants of AdapterView).</li> |
229 | | - * <li>{@link #getItemCount()} - The total items of the source (for descendants of AdapterView) |
230 | | - * or the height of the source in pixels (all other cases).</li> |
231 | | - * <li>{@link #getText()} - Text for providing more context.</li> |
232 | 261 | * <li>{@link #getContentDescription()} - The content description of the source.</li> |
| 262 | + * <li>{@link #getScrollX()} - The offset of the source left edge in pixels |
| 263 | + * (without descendants of AdapterView).</li> |
| 264 | + * <li>{@link #getScrollY()} - The offset of the source top edge in pixels |
| 265 | + * (without descendants of AdapterView).</li> |
| 266 | + * <li>{@link #getFromIndex()} - The zero based index of the first visible item of the source, |
| 267 | + * inclusive (for descendants of AdapterView).</li> |
| 268 | + * <li>{@link #getToIndex()} - The zero based index of the last visible item of the source, |
| 269 | + * inclusive (for descendants of AdapterView).</li> |
| 270 | + * <li>{@link #getItemCount()} - The total items of the source |
| 271 | + * (for descendants of AdapterView).</li> |
233 | 272 | * </ul> |
234 | 273 | * <em>Note:</em> This event type is not dispatched to descendants though |
235 | 274 | * {@link android.view.View#dispatchPopulateAccessibilityEvent(AccessibilityEvent) |
|
334 | 373 | * <li>{@link #getText()} - The text of the source's sub-tree.</li> |
335 | 374 | * <li>{@link #isEnabled()} - Whether the source is enabled.</li> |
336 | 375 | * <li>{@link #getContentDescription()} - The content description of the source.</li> |
| 376 | + * <li>{@link #getScrollX()} - The offset of the source left edge in pixels |
| 377 | + * (without descendants of AdapterView).</li> |
| 378 | + * <li>{@link #getScrollY()} - The offset of the source top edge in pixels |
| 379 | + * (without descendants of AdapterView).</li> |
| 380 | + * <li>{@link #getFromIndex()} - The zero based index of the first visible item of the source, |
| 381 | + * inclusive (for descendants of AdapterView).</li> |
| 382 | + * <li>{@link #getToIndex()} - The zero based index of the last visible item of the source, |
| 383 | + * inclusive (for descendants of AdapterView).</li> |
| 384 | + * <li>{@link #getItemCount()} - The total items of the source |
| 385 | + * (for descendants of AdapterView).</li> |
337 | 386 | * </ul> |
338 | 387 | * </p> |
339 | 388 | * <b>View hover exit</b> - represents the event of stopping to hover |
|
350 | 399 | * <li>{@link #getText()} - The text of the source's sub-tree.</li> |
351 | 400 | * <li>{@link #isEnabled()} - Whether the source is enabled.</li> |
352 | 401 | * <li>{@link #getContentDescription()} - The content description of the source.</li> |
| 402 | + * <li>{@link #getScrollX()} - The offset of the source left edge in pixels |
| 403 | + * (without descendants of AdapterView).</li> |
| 404 | + * <li>{@link #getScrollY()} - The offset of the source top edge in pixels |
| 405 | + * (without descendants of AdapterView).</li> |
| 406 | + * <li>{@link #getFromIndex()} - The zero based index of the first visible item of the source, |
| 407 | + * inclusive (for descendants of AdapterView).</li> |
| 408 | + * <li>{@link #getToIndex()} - The zero based index of the last visible item of the source, |
| 409 | + * inclusive (for descendants of AdapterView).</li> |
| 410 | + * <li>{@link #getItemCount()} - The total items of the source |
| 411 | + * (for descendants of AdapterView).</li> |
353 | 412 | * </ul> |
354 | 413 | * </p> |
355 | 414 | * <p> |
@@ -816,6 +875,8 @@ private void readAccessibilityRecordFromParcel(AccessibilityRecord record, |
816 | 875 | record.mToIndex = parcel.readInt(); |
817 | 876 | record.mScrollX = parcel.readInt(); |
818 | 877 | record.mScrollY = parcel.readInt(); |
| 878 | + record.mMaxScrollX = parcel.readInt(); |
| 879 | + record.mMaxScrollY = parcel.readInt(); |
819 | 880 | record.mAddedCount = parcel.readInt(); |
820 | 881 | record.mRemovedCount = parcel.readInt(); |
821 | 882 | record.mClassName = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel); |
@@ -868,6 +929,8 @@ private void writeAccessibilityRecordToParcel(AccessibilityRecord record, Parcel |
868 | 929 | parcel.writeInt(record.mToIndex); |
869 | 930 | parcel.writeInt(record.mScrollX); |
870 | 931 | parcel.writeInt(record.mScrollY); |
| 932 | + parcel.writeInt(record.mMaxScrollX); |
| 933 | + parcel.writeInt(record.mMaxScrollY); |
871 | 934 | parcel.writeInt(record.mAddedCount); |
872 | 935 | parcel.writeInt(record.mRemovedCount); |
873 | 936 | TextUtils.writeToParcel(record.mClassName, parcel, flags); |
|
0 commit comments