简体   繁体   中英

How to detect if a text on path is touched

Does anyone has a hint for my intention.

I have a text with a specific size X on a path in my custom view ( android ). How can I detect if the area of the text is touched ? ( blue area )

在此处输入图片说明

kind regards

There is no inbuilt API for that. Use an OnTouchListener, you get the X/Y coords and you have to figure it out yourself.

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