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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -