Code example for View

Methods: getVisibility

0
 
    @Override 
    public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) {
        View selectedView = getSelectedView();
        if (selectedView != null
                && selectedView.getVisibility() == View.VISIBLE
                && selectedView.dispatchPopulateAccessibilityEvent(event)) {
            return true; 
        } 
        return false; 
    } 
 
    @Override 
    protected void dispatchRestoreInstanceState( 
            SparseArray<Parcelable> container) {
        dispatchThawSelfOnly(container);
    } 
 
    @Override 
    protected void dispatchSaveInstanceState(SparseArray<Parcelable> container) {
        dispatchFreezeSelfOnly(container);