MaterialSpinner icon indicating copy to clipboard operation
MaterialSpinner copied to clipboard

Hint appears as an item to choose

Open Naharadir opened this issue 9 years ago • 12 comments

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 .

Naharadir avatar Nov 20 '15 16:11 Naharadir

That's actually not possible indeed. The hint is part of list items to let user reset his choice.

ganfra avatar Dec 22 '15 13:12 ganfra

NOW Is it possible to have, by default, the hint showing up but not being part of the list of items to choose from ?

vincenzoaceto avatar Jul 20 '17 09:07 vincenzoaceto

Looks like not. :( But I would want to have this feature

asinel avatar Aug 25 '17 12:08 asinel

Could you please provide more info on what is this requirement about?

mdumrauf avatar Sep 16 '17 07:09 mdumrauf

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

KonradSzewczuk avatar Nov 03 '17 09:11 KonradSzewczuk

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?

mdumrauf avatar Nov 04 '17 23:11 mdumrauf

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

apalala-dev avatar Nov 06 '17 11:11 apalala-dev

Hi @mdumrauf, when the fix from masaliev will be available ? It was committed since 14 dec 2017 but it is still in another branch.

Quentin1010 avatar Jan 24 '18 16:01 Quentin1010

This is actually an enhancement rather than a bug @Quentin1010

mdumrauf avatar Jan 24 '18 23:01 mdumrauf

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 avatar Jan 25 '18 08:01 Quentin1010

@Quentin1010 sorry for the misunderstanding. I will take a look this weekend and see if I can include it in next release.

mdumrauf avatar Jan 31 '18 17:01 mdumrauf

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

alammasoodi avatar Jun 06 '18 10:06 alammasoodi