开发者

Can i enhance touch sensitivity of a button?

I am working on an app, here i have two button, which navigate through the stories in my app, say next and previous buttons. They are not tapped properly, i mean i have to tap them twice or thrice to make them work on device. Is there anyway that i can increase the sensitivity of the buttons so that the work on just one tap开发者_如何学C. Any Suggestions and help is appreciated.


Use RelativeLayouts, with 10-15 dp of Paddings/Margins to enclose each of the Buttons and register the touch listener to the RelativeLayouts instead of the Buttons.


Is this different from the behavior of buttons elsewhere on your device? If so, you have done something strange in your app that has broken things. If not, then this is just an issue with how your device works and there is little you are likely to be to do to make the buttons in your app behave differently.

One thing you can do is put the Development (DevTools) app on your device and turn on Pointer Location to see on your screen the actual pointer events being generated.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜