01-20 13:52:28.888 3870-3870/cc.android.supu i/system.out: Parent class OnCreate
01-20 13:52:28.888 3870-3870/cc.android.supu i/system.out: sub-class OnCreate
01-20 13:52:28.903 3870-3870/cc.android.supu i/system.out: sub-class Afterview
01-20 13:52:28.906 3870-3870/cc.android.supu i/system.out: Parent class OnStart
01-20 13:52:28.906 3870-3870/cc.android.supu i/system.out: sub-class OnStart
01-20 13:52:28.906 3870-3870/cc.android.supu i/system.out: Parent class Onresume
01-20 13:52:28.906 3870-3870/cc.android.supu i/system.out: sub-class Onresume
01-20 13:52:28.960 3870-3870/cc.android.supu i/system.out: Sub-category menu Oncreateoptionenu
So if @after in the subclass wants to initialize the attributes in the parent class: For example, subclasses inherit a Actionbar common class, and subclasses want to control whether the common class Actionbar display ProgressBar or set the title of the Actionbar when initializing. Then this is the subclass of the Aferview injection method first executed, by the execution order of the above, the parent class (common Class) initialization method to put into the onstart, this way the class set of properties in the parent class only function.
Android annotation injection @afterview Execution time