Skip to content

Commit 303e54b

Browse files
committed
slider debounce implemented for better ux.
1 parent c980bd6 commit 303e54b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ You can easily load images with your custom layout, and there are many kinds of
1414
```
1515
If you are using appcompat libraries use this one, but please migrate to androidx as soon as you can.
1616
```groovy
17-
implementation 'com.github.smarteist:autoimageslider:1.3.7-appcompat'
17+
implementation 'com.github.smarteist:autoimageslider:1.3.8-appcompat'
1818
```
1919

2020
### New Feautures
2121
* Ability to disable default indicator.
2222

2323
### New Changes
24+
* Auto cycle bugs fixed.
25+
* Swiping debounce implemented.
2426

2527

2628
## Demo

app/src/main/java/com/smarteist/imageslider/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected void onCreate(Bundle savedInstanceState) {
3333
sliderView.setSliderAdapter(adapter);
3434
sliderView.setIndicatorAnimation(IndicatorAnimationType.WORM); //set indicator animation by using SliderLayout.IndicatorAnimations. :WORM or THIN_WORM or COLOR or DROP or FILL or NONE or SCALE or SCALE_DOWN or SLIDE and SWAP!!
3535
sliderView.setSliderTransformAnimation(SliderAnimations.SIMPLETRANSFORMATION);
36-
sliderView.setAutoCycleDirection(SliderView.AUTO_CYCLE_DIRECTION_RIGHT);
36+
sliderView.setAutoCycleDirection(SliderView.AUTO_CYCLE_DIRECTION_BACK_AND_FORTH);
3737
sliderView.setIndicatorSelectedColor(Color.WHITE);
3838
sliderView.setIndicatorUnselectedColor(Color.GRAY);
3939
sliderView.setScrollTimeInSec(3);

0 commit comments

Comments
 (0)