Code example for ImageButton

Methods: setVisibility

0
                getChildAt(i).setVisibility(View.VISIBLE);
            } 
        } 
        if (mUseBackButton) {
            boolean canGoBack = getTopCrumb() != null ? getTopCrumb().canGoBack : false;
            mBackButton.setVisibility(canGoBack ? View.VISIBLE : View.GONE);
        } else { 
            mBackButton.setVisibility(View.GONE);
        } 
    } 
 
    private void removeLastView() { 
        int ix = getChildCount();
        if (ix > 0) {
            removeViewAt(ix-1);
        } 
    } 
 
    Crumb getTopCrumb() { 
        Crumb crumb = null;
        if (mCrumbs.size() > 0) {