I'm trying to style a spinner. What I currently have is this
It is EditText
followed by Spinner
.
Now I'm using custom style as follows
It also consists of an EditText
followed by Spinner
but Spinner
is having some text(in this case "Other") on it which is Item name 1.
How do I remove that text i.e. selected item content should not be displayed on Spinner
.Spinner
doesn't have any textSize
attribute, otherwise I would have set it to 0.
I'm trying this from hours but no solution.
Any help appreciated.
You have to implement your own adapter that sets the title to empty string. This will do:
If your spinner has an id R.id.spinner in your layout set the adapter like this:
Of course the new String[] part would depend on what you want to display in your spinner or where the content of the spinner origins from.
I think you should use Android QuickAction Widget.Link
Its an open source project in GitHub. Instead of Spinner you can use QucikAction. Its very looks attractive.
Please go through below link.
https://github.com/lorensiuswlt/NewQuickAction3D
Make the string empty with " ". (i.e. two qoutation marks, with a space in the middle.)