简体   繁体   中英

Make android app better clickable

I have an icon in my application and I made it clickable (When I click the icon, some action is called), but the problem is, you have to be really accurate. On the other hand the menu icon (the 3 dots) has a bigger "range" and when you click little bit outside, it is still working. Is there any way to achieve the same thing at the app icon? Or is there any better way to make a clickable icon in the upper left corner than using app icon?

添加padding的图标,更padding你添加到它,更可点击区域,你会得到!

Try to put a transparent button over your icon. Don't forget to make it unclickable and put enabled to false, so it doesn't intercepts the click intended for the icon.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM