12-21 15:23:12.510 2296-2296/? D/MainActivity的生命周期: onCreate:
12-21 15:23:12.596 2296-2296/? D/自定义View的生命周期: onFinishInflate:
12-21 15:23:16.601 2296-2296/www.luoyin.com D/MainActivity的生命周期: onCreate: SystemClock.sleep(4000)
12-21 15:23:16.602 2296-2296/www.luoyin.com D/MainActivity的生命周期: onStart:
12-21 15:23:20.605 2296-2296/www.luoyin.com D/MainActivity的生命周期: onStart: SystemClock.sleep(4000)
12-21 15:23:20.605 2296-2296/www.luoyin.com D/MainActivity的生命周期: onResume:
12-21 15:23:24.606 2296-2296/www.luoyin.com D/MainActivity的生命周期: onResume: SystemClock.sleep(4000)
12-21 15:23:24.629 2296-2296/www.luoyin.com D/自定义View的生命周期: onMeasure:
12-21 15:23:24.629 2296-2296/www.luoyin.com D/自定义View的生命周期: onMeasure:
12-21 15:23:24.719 2296-2296/www.luoyin.com D/自定义View的生命周期: onSizeChanged:
12-21 15:23:24.719 2296-2296/www.luoyin.com D/自定义View的生命周期: onLayout:
12-21 15:23:24.730 2296-2296/www.luoyin.com D/自定义View的生命周期: onMeasure:
12-21 15:23:24.730 2296-2296/www.luoyin.com D/自定义View的生命周期: onMeasure:
12-21 15:23:24.732 2296-2296/www.luoyin.com D/自定义View的生命周期: onLayout:
12-21 15:23:24.732 2296-2296/www.luoyin.com D/自定义View的生命周期: onDraw:
PHP中文网2017-04-17 18:01:19
The drawing of different views in the same activity is asynchronous, but the activity is not a view. You can think of the activity as a container or carrier of the view, so there is always an activity first and then a view, so there is a misunderstanding in your understanding.