Closed GoogleCodeExporter closed 8 years ago
What are you talking about prompt? I'm confused by what you mean.
Original comment by IMPINC...@gmail.com
on 11 May 2012 at 2:24
Prompt as in the text that is first displayed on the dropdown before something
is chosen. after it is chosen, i tell it to set text (sorry should have said
text instead of prompt) to the choice the user made.
before they choose anything though, it should be using what i have chosen in
the GLE to be the text something like "please pick a choice" should show.
Instead, if the choices are (choice 1, choice 2, choice 3, choice 4), it
dispalys "choice 1"
Original comment by bric...@gmail.com
on 11 May 2012 at 2:37
Ok, after looking in the class, I just never noticed the prompt thing. I'll add
a method in the next version. For now, you can use
dropdown.getView().setPrompt("This is my prompt");
Original comment by IMPINC...@gmail.com
on 11 May 2012 at 2:52
Sorry, you have to cast it, this is the correct line:
((Spinner)dd.getView()).setPrompt("The prompt");
Original comment by IMPINC...@gmail.com
on 11 May 2012 at 3:01
So first I want to say Thank you, as I did not notice the Prompt either...that
is not however what I originally was reporting. I should have included
pictures (which I will from now on). Please see screenshots
Original comment by bric...@gmail.com
on 12 May 2012 at 2:47
Attachments:
That's been there the whole time. Use setSelection(String element) to set the
default selection.
Original comment by IMPINC...@gmail.com
on 22 May 2012 at 7:07
Original comment by IMPINC...@gmail.com
on 22 May 2012 at 7:22
Original issue reported on code.google.com by
bric...@gmail.com
on 11 May 2012 at 1:14