Can I increase a buttons onclick-area programmatically?

后端 未结 8 1992
孤独总比滥情好
孤独总比滥情好 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:46

    Maybe you could do so by looking at the X and Y coordinates of the MotionEvent passed into onTouchEvent ?

提交回复
热议问题