I am trying to implement swipeable tabs in action bar. But my problem is that I have a Activity class which displays listview. On click on another tab, it should take me to another listview. But I saw many posts with Fragments only. How could I modify my code to make it work with Activity class or what changes should I do?
Should I add ViewPager in a seperate XML file or in same XML as the listview? I tried adding ViewPager in the same XML also but I got a class cast exception.Any help will be greatly appreciated.