I am using the following code, MAX is 2 pages. By default the position is 0 and adds a new page to the right. I inflate two layout files.
How can I show the page1 wh
By default, you have to set the current value 1 to show the just one default view. If you do not set setCurrentItem to 1, you can not see anything.
setCurrentItem
viewPager.setAdapter(adapterViewPager); viewPager.setCurrentItem(1)