How to Include clickable text in staticlayout and surfaceview
问题 I designing an interactive kids book. I am using a canvas on surfaceview since I need animations which I think are best suited to surfaceview I want to make each word touchable and read that word aloud. This worked great when I used a regular view with a textview inside. I then tried canvas for animations and do not know how to do it. I have used a staticlayout on the canvas to hold the spannable text. I do not know how I can activate the onTouchListener. Here I set up the staticlayout public