androidandroid-fragmentsandroid-viewpagerandroid-tablayoutandroid-pageradapter

How to initialize my fragment in the main Activity, using ViewPager


I have a small problem with my ViewPager, When I Scroll to change the fragment, the process takes more time before changing the fragment. the cause is due to the initialisation on the fragments that takes more time.

Have you any suggestion that can help me?


Solution

  • It is very Important to use RecycleView instead of ListView when you have many Fragment and that fragment contains ListView.