1

Setting ViewPager's current item from fragment

view story
linux-howto

http://stackoverflow.com – I'm using a ViewPager in my app, with the initial fragment being a ListView and the other fragments being details of the ListView. The user can either manually select an item in the ListView or swipe though the various details. I have the swipe working, but I'm not sure how to get the item selection working. I'm assuming I need to do something in onListItemClick of the ListView and I know I can use setCurrentItem of the ViewPager, but the ViewPager is in the Activity and the ListView is in the fragment so I'm not sure how to get both working. This might be something obvious, but I'm new to (HowTos)