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.