我在使用 android-annotations 和继承时遇到了问题:
@EFragment(R.layout.fragment_foo)
public class TestBaseFragment {
@AfterViews
public void afterTestBaseFragmentViews() {
}
}
@EFragment(R.layout.fragment_foo)
public class TestFragment extends TestBaseFragment {
@AfterViews
public void afterTestFragmentViews() {
}
}
生成:
public final class TestFragment_
extends TestFragment
{
...
private void afterSetContentView_() {
afterTestFragmentViews();
afterTestBaseFragmentViews();
}
...
如何确保在 afterTestFragmentViews() 之前调用 afterTestBaseFragmentViews() ?或者你能给我指出任何描述如何使用 AndroidAnnotations 进行继承的文档吗?