How to make ImageButtons bounds wrap around the image?

后端 未结 1 1399
礼貌的吻别
礼貌的吻别 2021-01-21 05:18

I\'m making a GUI for an android app, this GUI contains a four direction ImageButtons (look at the following image):

相关标签:
1条回答
  • 2021-01-21 05:27

    There is a work around for that..You can achieve it like this...enter image description here

    Here you create a bigger layout (in red) and put whole image at once...Now create few more layouts (in yellow) and dont put any backgrounds on them .now set onclicklisteners on these layouts...by this way you can achieve it to some extent...hope you got me...

    0 讨论(0)
提交回复
热议问题