1

Basically, I have a total of 6 ImageButtons. However, is it possible to have a layout like this?

Button Layout

Button Layout

One of my concerns is that the buttons will overlap each other.

Overlapping Buttons Overlapping Buttons

How can I specify that the area with the image is the only clickable part? How will I make the transparent area not clickable?

AskNilesh
  • 67,701
  • 16
  • 123
  • 163
jamieaguinaldo
  • 129
  • 1
  • 2
  • 13
  • https://android-arsenal.com/details/1/780 – AskNilesh Feb 13 '18 at 07:57
  • https://github.com/BCsl/CursorWheelLayout – AskNilesh Feb 13 '18 at 07:58
  • https://github.com/thanhniencung/LuckyWheel – AskNilesh Feb 13 '18 at 07:59
  • Possible duplicate of [Create rotation wheel in android?](https://stackoverflow.com/questions/41847225/create-rotation-wheel-in-android) – AskNilesh Feb 13 '18 at 07:59
  • @NileshRathod This will do. However, the layout that I have doesn't really act like a wheel with the animation. Though, layout wise, this will do. – jamieaguinaldo Feb 13 '18 at 08:14
  • 1
    Trickily check the bitmap pixel in `onTouch`, refer to [prevent onClick method on transparent ImageView](https://stackoverflow.com/questions/15343266/how-to-prevent-onclick-method-on-transparent-portion-of-a-png-loaded-imageview). But It looks too heavy because create bitmap every touch. – sakiM Feb 13 '18 at 08:45
  • The thread here shows how to create buttons of different shapes. You could adapt this approach? https://stackoverflow.com/questions/13861416/android-custom-shape-button – Sam Feb 13 '18 at 10:07

0 Answers0