Android-Hint-Spinner icon indicating copy to clipboard operation
Android-Hint-Spinner copied to clipboard

No hint is displayed when list of options is empty

Open grago opened this issue 8 years ago • 3 comments

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

grago avatar Jan 29 '17 04:01 grago

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).

srodrigo avatar Jan 29 '17 11:01 srodrigo

I thought so! :)

No worries, thanks a lot for your great work!

grago avatar Jan 30 '17 07:01 grago

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

Elbarody avatar Dec 16 '17 17:12 Elbarody