tags:

views:

23

answers:

1

While I'm developing custom widget by using TextView widget, this question come up to my mind. When mText(member variable of TextView) is displayed, actually?

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

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

Is there someone who know about it?

+1  A: 

take a look at protected makeNewLayout()

James