My design is i have a listview of reports when user click on any report i have to show its detail in the viewpager after this user can swaps viewpager forward or backward to see next and previous report listed in the listview
lets say user clicked on 5th report i showed its detail by getting relevant element associated with the listview item position in the arraylist, now how can i show next report in the viewpager when user swaps forward and previous report when user swaps backward
You can use
viewPager.setCurrentItem(position);
You have to change position of your viewPager when you swap it left/right.