vijayrawatsan / android-json-form-wizard

Android Material Json Form Wizard is a library for creating beautiful form based wizards within your app just by defining json in a particular format.
MIT License
356 stars 98 forks source link

Spinner invalid index 3, size is 3 #38

Open diegobsm opened 7 years ago

diegobsm commented 7 years ago

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 commented 5 years ago

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