Tapping texts (Any advice?)

Hello,

I have an app where the user is constantly tapping on texts, the texts are buttons. When tapping the texts on the simulator it works fine, because of the precision. But when i put the app on my device and test it, it’s very hard to tap the text (the text is a number). It takes me about 5 times till the touch event works.

Is their any way to enlarge the touch boundary of the text? Because it just doesn’t work…?

Any advice?

Thanks. If you have any questions concerning my answer please ask.

  • Michael [import]uid: 23689 topic_id: 21508 reply_id: 321508[/import]

You could put an invisible rectangle over the top of your text and handle the tapping of that instead.
–Croisened [import]uid: 48203 topic_id: 21508 reply_id: 85100[/import]

Yeah, that’s what I was thinking… I just was wondering if their was a better way to do it.

But, Thanks for your response!

  • Michael [import]uid: 23689 topic_id: 21508 reply_id: 85103[/import]

You could use the button widget for your button. Set the button label as your text and the alpha property of both the defaultColor and the strokeColor as 0. That way you’ll have the text with the button’s boundaries.

Hope that helps! [import]uid: 64174 topic_id: 21508 reply_id: 85162[/import]