Rumah > Soal Jawab > teks badan
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
同一activity内的不同view的绘制是异步的,但activity不是view,你可以看成activity是view的容器或载体,所以总是先有activity再有view,所以你的理解存在误区。