android - ViewPager in a row of a RecyclerView - IllegalArgumentException: No view found for id for fragment -
i tried create recyclerview multiple view type, including viewpager inside row.
for recyclerview, integrate 2 libraries :
- the first one, superslim library, used recyclerview, integrates sticky header.
- the second one, viewpagerindicator, used viewpager, integrate indicators it.
well, context in place !
so, when try display recyclerview, application crash following error.
java.lang.illegalargumentexception: no view found id 0x7f0c0062 (com.tspckr.vpinsidercrow:id/rowviewpager) fragment pagefragment{41fc0f78 #0 id=0x7f0c0062 android:switcher:2131492962:0}
but if add handler delay displaying data (like if perform network request), recyclerview displaying not data in viewpager except viewpagerindicator show indicators waited.
most interesting thing, if try scroll viewpager @ end , rotate device, viewpager show (normally) content.
i think bugs because viewpager instantiate and, when try attach data, doesn't update or there no more reference on ...
anyway, don't know how fix it.
i don't want display lines of code here, because, there much.
instead, created github contain easier copy of project, directly runnable (this copy retake same operations original).
note : constant with_delay allow run application delay (simulate network request) or not (instant crash).
Comments
Post a Comment