Android 4.0.3
I have a simple dropdown spinner. By default title of spinner is the first item in list, but i whant to set my text. How to do that ? android: promt – doesnt work
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume you want to change the text of the spinner when it’s closed right?
Well, android:prompt is not intended to do this. It only sets a header to the spinner. You can’t change the text displayed on the closed spinner by default. Android takes the first item of the spinner and displys that. So if you don’t want that then you’ll have to modify the adapter.