0

I need to create a custom button layout and I cannot figure out how to make working buttons that don't overlap.

I've created an ImageView along with Buttons that have the masks as the background set to invisible, as to only display the ImageView.

ImageView:

Just the ImageView

Buttons and masks:

W/Buttons (and their masks) visible

It's not the most exact placement, but I'll take it.

Right now, I've only got each button using an onClick function and absolutely nothing happens.

Rene
  • 74
  • 7
  • For this I would make a subclass of constraintlayout and manually shape the buttons and position them relative to each other – Tim Aug 20 '19 at 09:12
  • That'd fix and help with positioning, but I don't see how that would help make working button masks. – GalacticWorld Aug 20 '19 at 09:17
  • Did you already check this question/answer? https://stackoverflow.com/a/13879492/9698068 – Rene Aug 20 '19 at 09:59
  • @ReneEder Yep. The issue is, I don't know how to create the mask using shape negatives. The visible mask is just a png of what I want the clickable area to be that's set as the background. – GalacticWorld Aug 20 '19 at 10:04

0 Answers0