android - ViewPager+FragmentPagerAdapter app running slow with one fragment having GridView -
In my view, the ViewPager contains three pieces of ViewPager. I and Gridview for each grid containing images for a grid I am using (6 images). When I make changes with the plane text with gridview and slice, swipe is actually very slow. I started Gridview and Layout Inflator, which is responding to Slag. Should I use the FragmentStatePagerAdapter ? But the number of pieces I'm using is only 3. How do I make smooth transitions between different tabs? Code for slice class with gridview Push the mainTourism section {@Override Public View onCreateView (LayoutInflater inflater, ViewGroup container, bundle) SavedInstanceState) {// TODO Automatic Created Method Stub ViewGroup rootView = (ViewGroup) inflater.inflate (R.layout.fragment_tourism, faucet) extends; Gridview Gridview = (Gridview) Routeview.FindvibIID (RIDGDView); Gridview.setAdapter (new tourism image adapter (getActivity ()); Return root view; }} Code for adapter class Public class TourismImageAdapter exte...