I want the activity to be on the screen and a fragment to appear on swipe. Can I use viewpager? Viewpagers are generally used for multiple fragments. Can an activity and fragment be added in the viewpager?
Yes you can use viewpager, but, you cant put an activity inside a viewpager. only fragments. Its fairly easy to convert an activity to a fragment. With this you may now construct your activity in this heirarchy:
Activity
-ViewPager
--List of Fragments