Is there an example of how to use a TouchDelegate in Android to increase the size of a view's click target?

后端 未结 11 595
误落风尘
误落风尘 2020-11-28 19:01

My understanding is that when you have a view that\'s too small to easily touch, you\'re supposed to use a TouchDelegate to increase the clickable region for that view.

11条回答
  •  盖世英雄少女心
    2020-11-28 19:21

    If don't want to do it programatically then simply create transparent area around the image, If you are using image as background for the button (view).

    The grey area can be transparent to increase the touch area.

    enter image description here

提交回复
热议问题