Code example for Drawable

Methods: setLevel

0
    protected boolean onLevelChange(int level) {
        if (mLastDrawable != null) {
            return mLastDrawable.setLevel(level);
        } 
        if (mCurrDrawable != null) {
            return mCurrDrawable.setLevel(level);
        } 
        return false; 
    } 
 
    @Override 
    protected boolean onStateChange(int[] state) {
        if (mLastDrawable != null) {
            return mLastDrawable.setState(state);
        } 
        if (mCurrDrawable != null) {
            return mCurrDrawable.setState(state);
        } 
        return false; 
    }