开发者

When is mText(member variable of TextView) displayed, actually?

开发者 https://www.devze.com 2022-12-16 16:02 出处:网络
While I\'m developing a custom widget by using TextView widget, this question comes up to my mind. When mText(member variable of TextView) is displayed, actually?

While I'm developing a custom widget by using TextView widget, this question comes up to my mind.

When mText(member variable of TextView) is displayed, actually?

I have thought that, just like other widgets, if I override the onDraw method in the custom widget, which is derived from TextView, I can dr开发者_StackOverflowaw mText as I want. But, it's not true.

I'm reviewing Android Widget source, and then I realized that mText is not displayed while onDraw is called, definitely.

Is there someone who knows about it?


take a look at protected makeNewLayout()

0

精彩评论

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