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 with only one item #68

Closed
burgab opened this issue Dec 7, 2017 · 2 comments
Closed

Spinner with only one item #68

burgab opened this issue Dec 7, 2017 · 2 comments
Assignees
Labels

Comments

@burgab
Copy link

burgab commented Dec 7, 2017

When adding a list with a single item, the spinner does't show that item. For two or more items everything it is ok.

@jaredrummler jaredrummler changed the title Spiner with only one Item Spinner with only one item Dec 7, 2017
@jaredrummler jaredrummler self-assigned this Dec 7, 2017
@castrojr913
Copy link

castrojr913 commented Apr 13, 2018

@jaredrummler It doesn't work. Do you have an example?

@clj0020
Copy link

clj0020 commented Jun 18, 2018

@jaredrummler Still does not work. Adding items from my array resource file like

val adapter = ArrayAdapter.createFromResource(context,
                                R.array.example_array, android.R.layout.simple_spinner_item)
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
spinner.setAdapter(adapter)

But one of my arrays has only one item and it does not fill the spinner with any values.

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

No branches or pull requests

4 participants