Code example for Drawable

Methods: setVisible

0
        boolean changed = super.setVisible(visible, restart);
        if (mLastDrawable != null) {
            mLastDrawable.setVisible(visible, restart);
        } 
        if (mCurrDrawable != null) {
            mCurrDrawable.setVisible(visible, restart);
        } 
        return changed;
    } 
 
    @Override 
    public void unscheduleDrawable(Drawable who, Runnable what) {
        if (who == mCurrDrawable && getCallback() != null) {
            getCallback().unscheduleDrawable(this, what);
        } 
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE