daimajia / daimajia/AndroidImageSlider
pageIndicator size issue
- Dominant language
- Java
- Stars
- 5.6k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
Not able to change the size of the indicator even by using sliderLayout.getPagerIndicator().setDefaultIndicatorSize(10,10, PagerIndicator.Unit.DP);
The size of the indicator is changing after sliding to next page
I have tried even
sliderLayout.getPagerIndicator().setDefaultSelectedIndicatorSize(10,10, PagerIndicator.Unit.DP);
sliderLayout.getPagerIndicator().setDefaultUnselectedIndicatorSize(10,10, PagerIndicator.Unit.DP);
still not fixed plz suggest some solution.
here is my code :
Hash_file_maps.put("1",R.drawable.img1);
Hash_file_maps.put("2",R.drawable.img2);
Hash_file_maps.put("3",R.drawable.img3);
Hash_file_maps.put("4",R.drawable.img4);
Hash_file_maps.put("5",R.drawable.img5);
// Hash_file_maps.put("6",R.drawable.img6);
// Hash_file_maps.put("7",R.drawable.img7);
for(String name : Hash_file_maps.keySet()){
TextSliderView textSliderView = new TextSliderView(LoginActivity.this);
textSliderView
.description(null)
.image(Hash_file_maps.get(name))
.setScaleType(BaseSliderView.ScaleType.Fit)
.setOnSliderClickListener(this);
textSliderView.bundle(new Bundle());
textSliderView.getBundle()
.putString("extra",name);
sliderLayout.addSlider(textSliderView);
}
sliderLayout.setPresetTransformer(SliderLayout.Transformer.Default);
sliderLayout.setSliderTransformDuration(250,null);
sliderLayout.getPagerIndicator().setDefaultUnselectedIndicatorSize(10,10, PagerIndicator.Unit.DP);
sliderLayout.setPresetIndicator(SliderLayout.PresetIndicators.Center_Top);
sliderLayout.getPagerIndicator().setDefaultIndicatorSize(10,10, PagerIndicator.Unit.DP);
sliderLayout.getPagerIndicator().setDefaultSelectedIndicatorSize(10,10, PagerIndicator.Unit.DP);
sliderLayout.getPagerIndicator().setDefaultUnselectedIndicatorSize(10,10,PagerIndicator.Unit.DP);
sliderLayout.getPagerIndicator().setPadding(0,80,0,0);
sliderLayout.setDuration(3500);
sliderLayout.addOnPageChangeListener(this);
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.