handlePageSelected is not working when selecting index 0
Author: Morteza-RastgooCreated Oct 10, 2017Updated Jun 11, 2024
I used the example
ScaleCircleNavigator scaleCircleNavigator = new ScaleCircleNavigator(this);
scaleCircleNavigator.setMaxRadius(15);
scaleCircleNavigator.setMinRadius(10);
scaleCircleNavigator.setCircleCount( PAGE_COUNT );
scaleCircleNavigator.setNormalCircleColor(getResources().getColor(R.color.gray_light));
scaleCircleNavigator.setSelectedCircleColor(getResources().getColor(R.color.gray));
sliderIndicator.setNavigator(scaleCircleNavigator);
indicatorHelper = new FragmentContainerHelper(sliderIndicator);
indicatorHelper.handlePageSelected(0);//Problem with the index herebut when i set handlePageSelected(0) the first item is not being selected but with other indexes, it works well!

Source: hackware1993/MagicIndicator