I Have to let an id be selected from a dropdown list of a spinner. If the list is empty I want to be able to enter id manually. How is this possible in android?
Share
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 don’t think Spinner allows that and it’s not a good solution anyway because phone screens are small.
You can create a ListView listing all the existing items with an ‘Create New’ item on the very top.
Or you can have a Plus icon in the Action Bar or a menu choice in the menu.
You may want to study Contacts application UI to see how they do it for adding a new contact