Answers for "viewpager adapter 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 "viewpager adapter android"

Browse Popular Code Answers by Language