use of android.support.v4.view.accessibility.AccessibilityRecordCompat in project DiscreteScrollView by yarolegovich.
the class DiscreteScrollLayoutManager method onInitializeAccessibilityEvent.
@Override
public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
super.onInitializeAccessibilityEvent(event);
if (getChildCount() > 0) {
final AccessibilityRecordCompat record = AccessibilityEventCompat.asRecord(event);
record.setFromIndex(getPosition(getFirstChild()));
record.setToIndex(getPosition(getLastChild()));
}
}
Aggregations