Created
March 9, 2013 10:09
-
-
Save castorflex/5123719 to your computer and use it in GitHub Desktop.
Added possibility to set drawables programmatically
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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