List of usage examples for android.view.accessibility AccessibilityNodeInfo setClassName
public void setClassName(CharSequence className)
From source file:com.appunite.list.GridView.java
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH) @Override//from ww w .ja va 2 s . co m public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) { super.onInitializeAccessibilityNodeInfo(info); info.setClassName(GridView.class.getName()); }
From source file:com.android.internal.widget.ViewPager.java
@Override public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) { super.onInitializeAccessibilityNodeInfo(info); info.setClassName(ViewPager.class.getName()); info.setScrollable(canScroll());//from w w w.j a v a 2 s .c o m if (canScrollHorizontally(1)) { info.addAction(AccessibilityAction.ACTION_SCROLL_FORWARD); info.addAction(AccessibilityAction.ACTION_SCROLL_RIGHT); } if (canScrollHorizontally(-1)) { info.addAction(AccessibilityAction.ACTION_SCROLL_BACKWARD); info.addAction(AccessibilityAction.ACTION_SCROLL_LEFT); } }
From source file:com.albedinsky.android.ui.widget.SeekBarWidget.java
/** *//*from w ww. j a v a 2 s.com*/ @Override @TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH) public void onInitializeAccessibilityNodeInfo(@NonNull AccessibilityNodeInfo info) { super.onInitializeAccessibilityNodeInfo(info); info.setClassName(SeekBarWidget.class.getName()); }
From source file:com.appunite.list.HorizontalListView.java
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH) @Override/* ww w . jav a 2 s . c o m*/ public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) { super.onInitializeAccessibilityNodeInfo(info); info.setClassName(HorizontalListView.class.getName()); }
From source file:com.awrtechnologies.carbudgetsales.hlistview.widget.HListView.java
@TargetApi(14) @Override/*from ww w . j av a 2 s . c om*/ public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) { super.onInitializeAccessibilityNodeInfo(info); info.setClassName(HListView.class.getName()); }
From source file:com.appunite.list.ListView.java
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH) @Override// www. j av a 2 s . c om public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) { super.onInitializeAccessibilityNodeInfo(info); info.setClassName(ListView.class.getName()); }
From source file:com.common.widget.hzlib.AbsListView.java
@Override public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) { super.onInitializeAccessibilityNodeInfo(info); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { info.setClassName(AbsListView.class.getName()); }//from w w w. j a va 2 s . c o m if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { if (isEnabled()) { if (getFirstVisiblePosition() > 0) { info.addAction(AccessibilityNodeInfo.ACTION_SCROLL_BACKWARD); } if (getLastVisiblePosition() < getCount() - 1) { info.addAction(AccessibilityNodeInfo.ACTION_SCROLL_FORWARD); } } } }
From source file:com.appunite.list.AbsHorizontalListView.java
@Override @TargetApi(Build.VERSION_CODES.JELLY_BEAN) public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) { super.onInitializeAccessibilityNodeInfo(info); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { info.setClassName(AbsHorizontalListView.class.getName()); }// ww w . j a v a2 s.co m if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { if (isEnabled()) { if (getFirstVisiblePosition() > 0) { info.addAction(AccessibilityNodeInfo.ACTION_SCROLL_BACKWARD); } if (getLastVisiblePosition() < getCount() - 1) { info.addAction(AccessibilityNodeInfo.ACTION_SCROLL_FORWARD); } } } }
From source file:com.liu.hz.view.AbsHorizontalListView.java
@Override public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) { super.onInitializeAccessibilityNodeInfo(info); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { info.setClassName(AbsHorizontalListView.class.getName()); }// www. java2 s. c o m if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { if (isEnabled()) { if (getFirstVisiblePosition() > 0) { info.addAction(AccessibilityNodeInfo.ACTION_SCROLL_BACKWARD); } if (getLastVisiblePosition() < getCount() - 1) { info.addAction(AccessibilityNodeInfo.ACTION_SCROLL_FORWARD); } } } }
From source file:com.runmit.sweedee.view.DirectListView.java
@Override @TargetApi(14)//from w w w.java2 s . c o m public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) { super.onInitializeAccessibilityNodeInfo(info); info.setClassName(DirectListView.class.getName()); AccessibilityNodeInfoCompat infoCompat = new AccessibilityNodeInfoCompat(info); if (isEnabled()) { if (getFirstVisiblePosition() > 0) { infoCompat.addAction(AccessibilityNodeInfoCompat.ACTION_SCROLL_BACKWARD); } if (getLastVisiblePosition() < getCount() - 1) { infoCompat.addAction(AccessibilityNodeInfoCompat.ACTION_SCROLL_FORWARD); } } }