PagerAdapter start position

前端 未结 9 1106

I\'m using the following example to impliment my viewPager: http://code.google.com/p/viewpagerexample/issues/list

The problem with this example is that I can\'t figure o

9条回答
  •  温柔的废话
    2021-01-30 08:39

    To start with the last fragment I did this:

    PagerAdapter pagerAdapter = new PagerAdapter();
    viewPager.setAdapter(pagerAdapter);
    viewPager.setCurrentItem(pagerAdapter.getCount() - 1);
    

提交回复
热议问题