Code example for View

Methods: setVisibility

0
        if (isInFilterMode()) { 
            empty = false;
        } 
        if (empty) {
            if (mEmptyView != null) {
                mEmptyView.setVisibility(View.VISIBLE);
                setVisibility(View.GONE);
            } else { 
                setVisibility(View.VISIBLE);
            } 
            if (mDataChanged) {
                this.onLayout(false, getLeft(), getTop(), getRight(),
                        getBottom()); 
            } 
        } else { 
            if (mEmptyView != null) {
                mEmptyView.setVisibility(View.GONE);
            } 
            setVisibility(View.VISIBLE);
        } 
    } 
}