开发者

Wordwrapping in a surfaceView

开发者 https://www.devze.com 2023-03-07 02:19 出处:网络
I have a surfaceView which I want to respond to any touch on it with its onTouch() method. However, I would also like to display a significant amount of text on the screen. There may be a significant

I have a surfaceView which I want to respond to any touch on it with its onTouch() method. However, I would also like to display a significant amount of text on the screen. There may be a significant amount of text; enough text that I would like for some word wrapping to occur. This doesn't seem possible using the Canvas drawText() method for the surfaceView. Is there a way to put a text view under my surfaceView, so that I can take advantage of the properties of a textView, but still have the full area of the surfaceView touchable? That is, I still want my s开发者_Python百科urfaceView's onTouch() method to execute when I touch the text in the textView.

Thanks,


Why don't you just write a method that will deal with the wordwrapping?

0

精彩评论

暂无评论...
验证码 换一张
取 消