public void onInitializeAccessibilityEvent(AccessibilityEvent paramAccessibilityEvent)
 {
   if (Build.VERSION.SDK_INT >= 14)
   {
     super.onInitializeAccessibilityEvent(paramAccessibilityEvent);
     paramAccessibilityEvent.setClassName(LinearLayoutCompat.class.getName());
   }
 }
 @Override
 public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
   super.onInitializeAccessibilityEvent(event);
   event.setScrollable(isScrollableForAccessibility());
   View selectedView = getSelectedView();
   if (selectedView != null) {
     event.setEnabled(selectedView.isEnabled());
   }
   event.setCurrentItemIndex(getSelectedItemPosition());
   event.setFromIndex(getFirstVisiblePosition());
   event.setToIndex(getLastVisiblePosition());
   event.setItemCount(getCount());
 }
 public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
   super.onInitializeAccessibilityEvent(event);
   event.setClassName(LinearLayout.class.getName());
 }
Пример #4
0
 @Override
 public void onInitializeAccessibilityEvent(@NonNull AccessibilityEvent event) {
   super.onInitializeAccessibilityEvent(event);
   event.setClassName(MonthView.class.getName());
 }
Пример #5
0
 @Override
 public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
   super.onInitializeAccessibilityEvent(event);
   event.setClassName(FrameLayout.class.getName());
 }