tags:

views:

39

answers:

1

Hey Guys,

I am trying to implement a drop down list when a button is clicked.

So, I have a text view and a button in a navigation bar(nav.xml) and a corresponding list view. This navigation bar is included in another page( products.xml)

when the button is clicked i get the list view right below the button(which is what i want to acheive) but its my moving all the contents on the current page downwards, even the text view which is placed in nav bar moved downwards.

I am totally new to Android, any sample examples or a way how to achieve it ???

+1  A: 

Sounds like you need a Spinner. It's the equivalent of a drop down list for Android. You can find an example here.

kcoppock