我有Android的註釋和繼承的麻煩:Android的註解和繼承
@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();
}
...
我怎麼能確保afterTestBaseFragmentViews()被afterTestFragmentViews之前稱爲() ? 或者你能指出我的任何文檔描述如何使用AndroidAnnotations繼承?
https://github.com/androidannotations/androidannotations/issues/810#issuecomment-31218529 – 2016-11-07 21:43:03