Code example for Drawable

Methods: isStatefulsetState

0
    } 
 
    private void updateDrawableState() { 
        int[] state = getDrawableState();
 
        if (mProgressDrawable != null && mProgressDrawable.isStateful()) {
            mProgressDrawable.setState(state);
        } 
 
        if (mIndeterminateDrawable != null && mIndeterminateDrawable.isStateful()) {
            mIndeterminateDrawable.setState(state);
        } 
    } 
 
    static class SavedState extends BaseSavedState {
        int progress;
        int secondaryProgress;
 
        /** 
         * Constructor called from {@link IcsProgressBar#onSaveInstanceState()} 
         */