https://kotlinlang.org logo
#android
Title
# android
k

kevin.cianfarini

09/09/2018, 2:33 AM
People who have worked with
ViewPager
in combination with `RecyclerView`: did you experience weirdness with the fragment lifecycle displaying your list of items?
stackoverflow 3
j

judrummer

09/09/2018, 9:24 AM
don't use lazy to store view reference in fragment. Fragment can recall onCreateView() and ondestroyview() many times
You use android extension already. Why need to use lazy to store reference?
u

uhe

09/10/2018, 9:59 AM
ViewPager + RecyclerView + Fragments = Weirdness guaranteed
1
any combination of 2 of those 3 things will result in general weirdness
😮 1