Answers for "how to open view pager by position in android"

2

how to open view pager by position in android

sliderAdapter = new SliderAdapter(YourActivity.this);
 sliderPager = (ViewPager) findViewById(R.id.sliderPager);
 sliderPager.setAdapter(sliderAdapter);
 sliderPager.setCurrentItem(CurrentPosition);
Posted by: Guest on February-03-2021

Code answers related to "how to open view pager by position in android"

Browse Popular Code Answers by Language