Code example for Drawable

Methods: isStatefulsetState

0
  } 
 
  @Override 
  protected void drawableStateChanged() { 
    super.drawableStateChanged(); 
    if (mPinnedDrawable.isStateful()) {
      mPinnedDrawable.setState(getDrawableState());
    } 
    if (mUnpinnedDrawable.isStateful()) {
      mUnpinnedDrawable.setState(getDrawableState());
    } 
    if (mShadowDrawable.isStateful()) {
      mShadowDrawable.setState(getDrawableState());
    } 
  } 
 
  @Override 
  protected void onDraw(Canvas canvas) {
    super.onDraw(canvas);
 
Stop searching for code, let great code find you!  Add Codota to your java IDE