I have two png-images for the pressed and released state of a button. I'd like to build a button that accomplishes the following:
- Has no background/border (only those two images visible)
- Does not highlight with a blue rectangle when clicked (only by cycling through those images)
- Does not get activated, when the user clicks on a transparent part of the image.
As you can see, the button is not rectangular, so the last point mentioned above might be tricky.
I already tried to use an ImageButton
and managed to meet point 1, but I failed at point 2.
Is there another View
I can use, that does the work for me? If not, could you hint me what techniques I should look into to solve this?