Fragment is loading in the same place when using Android Master/Detail Flow with RecyclerView and Viewpager

By Imdad Ismail

Illustration of the problem… Please view this image to get a better understanding of the problem

In short the fragment does not reload to the correct position when changing viewpager pages, I temporarily fixed this issue by returning “POSITION_NONE” in getItemPosition() in the viewpager adapter but I am looking for a better solution if anyone can help that would be great.

Source: Stack Overflow

    

Share it with your friends!

    Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /home/content/19/9652219/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273