MaterialSpinner
MaterialSpinner copied to clipboard
Hint appears as an item to choose
Is it possible to have, by default, the hint showing up but not being part of the list of items to choose from ? Like an Edit Text hint .
That's actually not possible indeed. The hint is part of list items to let user reset his choice.
NOW Is it possible to have, by default, the hint showing up but not being part of the list of items to choose from ?
Looks like not. :( But I would want to have this feature
Could you please provide more info on what is this requirement about?
Can you provide ability to be possible, to hide hint from dropdown, and display only items without hint on dropdown? It does not make sense to have selectable hint from dropdown. You can provide the ability to developer to decide if it is wanted to show hint in dropdown list
I think that being able to have selectable hint from dropdown does make sense in the way that you can reset the Spinner to the default-no-option-selected status. Otherwise there wouldn't be any way to let the user reset it.
However, I see that there are 3 persons interested. Can you please tell me a use case where this would be useful?
I wanted this feature aswell but ended up by using the floatinglabel attribute instead. The floating label explains what are the items in the dropdown (without being in it) and the item selected is one of the values in the list (the "default one" for my use case). The setSelection method does not seem to work however and the floating label is not present at first. It becomes visible when we click on an other item (and stay visible if we eventually go back to the first one selected). EDIT : I used the method showFloatingLabel() in the onCreate() method to correct the behaviour where the floating label did not show at first
Hi @mdumrauf, when the fix from masaliev will be available ? It was committed since 14 dec 2017 but it is still in another branch.
This is actually an enhancement rather than a bug @Quentin1010
Even though I was just referring to the title of his commit (i.e. "Fix hint appears as an item to choose") and that this was a semantic problem pointed out, you didn't really answer my question. Do you know when/think this new feature will be push to the master branch ? Thanks for your quick answers.
PS: I will edit that out next because it may not belong to here but, I just wanted to know if you saw my other issue concerning prefix problem ?
@Quentin1010 sorry for the misunderstanding. I will take a look this weekend and see if I can include it in next release.
To make the hint as a part of the options is a good logic so that a user can reset the options but whether to make this as a part of the options should have been a feature in this project....