Code example for AccessibilityNodeInfo

Methods: setClassName

0
    } 
 
    @Override 
    @SuppressLint("NewApi") 
    public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
        super.onInitializeAccessibilityNodeInfo(info);
        info.setClassName(SeekBar.class.getName());
    } 
 
    @Override 
    public void onProgressRefresh(float scale, boolean fromUser) {
        super.onProgressRefresh(scale, fromUser);
        if (mOnSeekBarChangeListener != null) {
            mOnSeekBarChangeListener.onProgressChanged(this, getProgress(),
                    fromUser);
        } 
    } 
 
    @Override 
    void onStartTrackingTouch() { 
        super.onStartTrackingTouch();