I'm using (github.com/rey5137/material) library. Before I used it I had an activity where the user selected options from spinners. It worked fine and I wanted to use his spinner instead. I ran into one problem. When I call setOnItemSelectedListener, I get this error message in the editor
setOnItemSelectedListener (com.rey.material.widget.Spinner.setOnItemSelectedListener) in Spinner cannot be applied to (anonymous android.widget.AdapterView.setOnItemSelectedListener)
After a lot more digging around and experimenting, I found an answer to my problem.
To anyone in the future with a similar problem with setOnItemSelectedListener with 3rd party spinners, here is the solution I found to work for me.
instead of having
you need to instead put
I get no errors and can save the item the user selected just fine