自定义View和自定义ViewGroup中主要方法的执行顺序

View中主要方法如下:

1 . onFinishInflate():
2 . onAttachedToWindow():
3 . onMeasure():
4 . onSizeChanged():
5 . onLayout():
6 . onWindowFocusChanged():
7 . onDraw():
8 . dispatchDraw():

ViewGroup中主要方法:

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-------------------last line for now-------------------