daimajia / daimajia/AndroidImageSlider

Removing image not working

Open
#112 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.6k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

First of all: thanks for the awesome library. After fighting with the ViewPager previously this makes my life so much easier.

I've got a problem though, and couldn't find anything recent about it. I've got a `SliderLayout` with multiple images. After I click a certain button I want to remove the current image, so I've implemented the following in the onclick of my button:

```
photoSlider.removeSliderAt(photoSlider.getCurrentPosition());
photoSlider.moveNextPosition(true);
photoSlider.invalidate();
```

The photo is however not removed. It moves to the next item correctly but when I swipe left I still see the previous picture... Have I implemented it wrong or is this a bug?

For the record: Im using the `1.1.2@aar` version of the library

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.