android - AfterViews method not called in fragment? -
i using android annotation in fragment class @afterviews annotated method not getting called. here code:
@efragment(r.layout.fragment_onboarding_base) public class addentityfragment extends fragment { @viewbyid viewpager onboardingviewpager; public static addentityfragment newinstance() { addentityfragment addentityfragment = new addentityfragment(); return addentityfragment; } @afterviews void afterviewcreated(){ onboardingviewpager.setadapter(new customonboardingpageradapter(getchildfragmentmanager(), getcontext())); } } what doing wrong here? checked debug point it's not going inside afterviewcreated() method. appreciable.
the problem not using generated class. should instead:
addentityfragment fragment = addentityfragment_.builder().build(); // add fragment in transaction
Comments
Post a Comment