Possible Duplicate:
Is it possible to have a spinner and a list view on the same page?
I want to have a spinner at the top of view, and then generate a list view below the spinner according to what the user has selected from the spinner, does anyone know a good tutorial for this or have some code lying around that might help?
I have had success using a ListView by extending ListActivity, but in this case I want to have things other than the ListView in the view, so I am not sure what to do?
First you can create layout for your activity, for example (layout_with_spinner):
and then you can create class extended from Activity
Maybe it helps to start. You can look at this
sample to look at some sample about spinners