Skip to content

Slider onClick #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rnofriwandikepoo308 opened this issue Feb 6, 2019 · 4 comments
Open

Slider onClick #98

rnofriwandikepoo308 opened this issue Feb 6, 2019 · 4 comments

Comments

@rnofriwandikepoo308
Copy link

rnofriwandikepoo308 commented Feb 6, 2019

When i Click on Slider and get List data position i got error and the position -2 . Why?
and how to get data from list when data just 1?

@riocallos
Copy link

riocallos commented Mar 3, 2019

This is also happening to me. I have a slider in the main activity and another one in a fragment within that activity. The slider on click works fine in the main activity and crashes on the fragment (I'm getting -2 also).

Update:
I found out this happens if you only have one image in the banner so I just did a work around for now. Hopefully this gets fixed.

@rnofriwandikepoo308
Copy link
Author

@riocallos I already solve this problem by make another logic when image just 1..
when image just 1 i just use ImageView with Picasso to load image but when i got more than 1 i use this library..

cause why u use banner if u just 1 image?

@riocallos
Copy link

riocallos commented Mar 4, 2019

@rnofriwandikepoo308 Because my images are setup in the backend. For now there is just one image but in the future we might add additional images thus the need for banner sliders. I wanted it to be dynamic.

@rnofriwandikepoo308
Copy link
Author

same with me..
i got the data from API which is it can be dynamically data..
but thanks for your respon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants