Reputation: 9020
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. Any Suggestions and help is appreciated.
Upvotes: 2
Views: 2710
Reputation: 1445
Use RelativeLayout
s, with 10-15 dp of Paddings/Margins to enclose each of the Button
s and register the touch listener to the RelativeLayout
s instead of the Button
s.
Upvotes: 2
Reputation: 91341
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.
Upvotes: 0