Skip to content
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

Spinner invalid index 3, size is 3 #38

Open
diegobsm opened this issue Jun 15, 2017 · 1 comment
Open

Spinner invalid index 3, size is 3 #38

diegobsm opened this issue Jun 15, 2017 · 1 comment

Comments

@diegobsm
Copy link

diegobsm commented Jun 15, 2017

I have three values(item1, item2,item3), when i select the item3 it show this error.
please, change your class "JsonFormFragmentPresenter", in the function "onItemSelect",
(position + 1) to (position)

@Durgnan
Copy link

Durgnan commented Jun 8, 2019

This is because index starts from 0 so if you want to select item 3 it's index should be 2.
Hope this helps

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