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

No hint is displayed when list of options is empty #2

Open
grago opened this issue Jan 29, 2017 · 3 comments
Open

No hint is displayed when list of options is empty #2

grago opened this issue Jan 29, 2017 · 3 comments

Comments

@grago
Copy link

grago commented Jan 29, 2017

Hey Sergio, could it be possible to display a hint even when the options list is empty? Currently the hint is not shown until an adapter is set with at least one option.

It looks like the getView() method of the spinner is not called when the options list getCount is 0, so the Hint view is never displayed in this case.

Thanks

@srodrigo
Copy link
Owner

Hi Gustavo, I think that's not possible at the moment. As you say, getView is not called when the list is empty. Let me think if it's possible to change this behaviour without adding the hint to the list (which was my initial approach and was a big headache).

@grago
Copy link
Author

grago commented Jan 30, 2017

I thought so! :)

No worries, thanks a lot for your great work!

@Elbarody
Copy link

it's a great work , but i thing this issues doesn't resolved until now as i wait the webService response and the list be empty so the hint disappear

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

3 participants