Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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