开发者

How do Android control auto-wrapping for TextView?

开发者 https://www.devze.com 2023-03-24 05:10 出处:网络
When text reach the end of the TextView, the next text will wrap to the new line. How do Android implement/control this(So that we can override)?

When text reach the end of the TextView, the next text will wrap to the new line.

How do Android implement/control this(So that we can override)?

I need to override something for my app, which doesn't do auto-wrapping correctly(known issue on Android 3.0+) with ImageSpan. But I don't know where to start.

I asked this question hoping to find a work-around fo开发者_如何学Pythonr the issue, but no answer yet.


You could extend TextView and override the paint() method.

0

精彩评论

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