Skip to content

Instantly share code, notes, and snippets.

@castorflex
Created March 9, 2013 10:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save castorflex/5123719 to your computer and use it in GitHub Desktop.
Save castorflex/5123719 to your computer and use it in GitHub Desktop.
Added possibility to set drawables programmatically
public void setFlippedDrawable(Drawable flippedDrawable){
mFlippedDrawable = flippedDrawable;
if(mIsFlipped) setImageDrawable(mFlippedDrawable);
}
public void setDrawable(Drawable drawable){
mDrawable = drawable;
if(!mIsFlipped) setImageDrawable(mDrawable);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment