Can I increase a buttons onclick-area programmatically?

后端 未结 8 1986
孤独总比滥情好
孤独总比滥情好 2021-02-01 16:34

Sometimes I have a button in my UI that it is so small that it is difficult to click. My solution so far has been to add a transparent border around the button in photoshop. Jus

8条回答
  •  一向
    一向 (楼主)
    2021-02-01 16:50

    Me personally, I'd use a TouchDelegate. This lets you deal with the touch target, and the visual view bounds as two different things. Very handy...

    http://developer.android.com/reference/android/view/TouchDelegate.html

提交回复
热议问题