I have a Menu button image and onclick of that ImageView i have to create a list of values. Ex: In music player application onclick on menu image delete,sharevia,etc.. options are getting displayed. Kindly reply to this ASAP if anyone worked on this.
Thanks in advance.
I have a Menu button image and onclick of that ImageView i have to
Share
If I understood your question correctly, then all you need to do is put the values you want to display in the list in an ArrayList and when the ImageButton is clicked, you set this ArrayList to the adapter of the list and redraw the list by
invalidate()or maybe just callnotifyDatasetChanged().This tutorial helps you to understand ListViews and in addition to this, you just need to call invalidate() or notifyDatasetChanged() in the onClickHandler.
Hope it helps.