TextView: onDraw getting called only once
问题 I have a situation where I want to debug calls to TextView.onDraw() so I subclassed it like this: public class MyTextView extends AppCompatTextView { View parent; public MyTextView(Context context) { super(context); } public MyTextView(Context context, AttributeSet attrs) { super(context, attrs); } public MyTextView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); } public void storeParent(View parent) { this.parent = parent; } @Override protected