We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
注意,注意,注意:ActivityLifecycleCallbacks 里的方法是在 Activity 对应生命周期的 super() 方法中进行的。 FragmentLifecycleCallbacks 里的方法是在 Fragment 对应生命周期方法全部执行完毕后后调用的。
Fragment的初始化时在ActivityLifecycle的Oncreate()中,通过 IActivity接口的useFragment()方法设置是否使用注册回掉监听
ActivityLifecycle
Oncreate()
IActivity
useFragment()
问题:为什么框架里的BaseActivity提供了通用的ButterKnife绑定,而BaseFragment没有提供? 回答:框架对Fragment提供了ButterKnife绑定,不过和BaseActivity以基类的形式绑定不同,Frament中对ButterKnife绑定是通过注册回掉的形式绑定的。
BaseActivity
ButterKnife
BaseFragment
Fragment
Frament
The text was updated successfully, but these errors were encountered:
https://github.com/JessYanCoding/MVPArms/wiki/Issues#13
Sorry, something went wrong.
No branches or pull requests
Fragment在框架中的使用
Fragment的初始化时在
ActivityLifecycle
的Oncreate()
中,通过IActivity
接口的useFragment()
方法设置是否使用注册回掉监听ButterKnife在Fragment中的绑定
问题:为什么框架里的
BaseActivity
提供了通用的ButterKnife
绑定,而BaseFragment
没有提供?回答:框架对
Fragment
提供了ButterKnife
绑定,不过和BaseActivity
以基类的形式绑定不同,Frament
中对ButterKnife
绑定是通过注册回掉的形式绑定的。The text was updated successfully, but these errors were encountered: