Viewpager are used when we required sliding window page with different content on each page and Viewpager is the recommended and easy to use method in the scenario where you want to show multiple types of the fragment on the same screen and user can change the contain of the page by just swiping on the page or by toching on the tab bar. Here in this example, I am using Android Studio 2.2 it is latest version at the time I am writing this blog. So we are good to start our view pager demo. Steps to create the project are as given below. Click on File Move your mouse to new Click on New Project select min version and a relevant name of your project. In this demo I taken the name of the project is ViewPagerExample, you can choose your suitable name as required. If you want you can test your app here just to ensure that everything is fine and your project are configured correctly. ViewPager layout We need to add the view pager layout to our main activity layout, open the activ...