Last active
August 29, 2015 14:06
-
-
Save ookami-kb/5cc6de0ccbad3ace541d to your computer and use it in GitHub Desktop.
ImageButton that accepts drawable as mask. Touch is only processed when touched on black pixel of mask.
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<declare-styleable name="MaskedImageButton"> | |
<attr name="maskDrawable" format="reference" /> | |
</declare-styleable> | |
</resources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment