android - Viewpager inside RecyclerView Inside a fragment -


i have set of fragments. each fragment contains recyclerview , and recyclerview has viewpager first row.

now in set of fragments when switch 1 fragment app crashing following exception log it

logcat

e/uncaughtexception: java.lang.illegalargumentexception: no view found id 0x7f1000ef (:id/viewpagerbanners) fragment mainbannerfragmentnew{a1564b5 #0 id=0x7f1000ef} @ android.support.v4.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1293) @ android.support.v4.app.fragmentmanagerimpl.movefragmenttoexpectedstate(fragmentmanager.java:1528) @ android.support.v4.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1595) @ android.support.v4.app.fragmentmanagerimpl.dispatchactivitycreated(fragmentmanager.java:2888) @ android.support.v4.app.fragment.performactivitycreated(fragment.java:2204) @ android.support.v4.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1326) @ android.support.v4.app.fragmentmanagerimpl.movefragmenttoexpectedstate(fragmentmanager.java:1528) @ android.support.v4.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1595) @ android.support.v4.app.fragmentmanagerimpl.dispatchactivitycreated(fragmentmanager.java:2888) @ android.support.v4.app.fragment.performactivitycreated(fragment.java:2204) @ android.support.v4.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1326) @ android.support.v4.app.fragmentmanagerimpl.movefragmenttoexpectedstate(fragmentmanager.java:1528) @ android.support.v4.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1595) @ android.support.v4.app.backstackrecord.executeops(backstackrecord.java:757) @ android.support.v4.app.fragmentmanagerimpl.executeops(fragmentmanager.java:2355) @ android.support.v4.app.fragmentmanagerimpl.executeopstogether(fragmentmanager.java:2146) @ android.support.v4.app.fragmentmanagerimpl.optimizeandexecuteops(fragmentmanager.java:2098) @ android.support.v4.app.fragmentmanagerimpl.execpendingactions(fragmentmanager.java:2008) @ android.support.v4.app.fragmentmanagerimpl$1.run(fragmentmanager.java:710) @ android.os.handler.handlecallback(handler.java:746) @ android.os.handler.dispatchmessage(handler.java:95) @ android.os.looper.loop(looper.java:148) @ android.app.activitythread.main(activitythread.java:5443) @ java.lang.reflect.method.invoke(native method) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:728) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:618) 

i passing getchildfragmentmanager viewpager adapter , using fragmentstatepageradapter

inside recyclerview adapter attaching adapter viewpager follows

switch (holder.getitemviewtype()) {         case type_banner:             if (((bannerholder) holder).viewpager.getadapter() == null) {                 ((bannerholder) holder).viewpager.setadapter(new carouseladapter(fragmentmanager, carouselitems)); 


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -