Answers for "android view page"

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

Browse Popular Code Answers by Language