728x90
awesomePager = (ViewPager) findViewById(R.id.awesomepager); 
awesomePager.setAdapter(awesomeAdapter); 
awesomePager.setCurrentItem(CurrentPosition);


//kotlin으로는
awesomePager.currentItem = 0

Reference
https://ingeni.tistory.com/entry/android-ViewPager-시작시-원하는-positionitem으로-가기

728x90

+ Recent posts