I have One Spinner in AlertDialog.
On First look their will be only on spinner, and three options in it:
- Add Text Area,
- Add Edit Text,
- Add Radio Button.
WHen user will select any one option in the sipnner, AlerDialog should disply Text Area/Edit Text/Radio in the AlertDialog under the Spinner.
Any help/links
Thanks
Create the XML Layout view with your spinner and the text, edit text, and radio button. You Set the visibility of your text, edit text, and radio button to GONE.
I think the easiest way to do this is to extend the AlertDialog object. In the object you can set the view of you AlertDialog using
Now you can get references to your elements using
Add a listener to you spinner and based on the options that is chose you can now use your element handles to change the visibility of what you want to show.