• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating a listview when clicked on a button using onClick method of onClickListener interface

 
arjun narahari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello everyone , i am new to this forum and also to android
i am here to seek knowledge from everyone out there

i have a question regarding listview
i wanted to know about how to create a listview ,say a simple list of 5 items, just displaying them when clicked on a button ? can anyone please tell me how to do it with onClick ??
any suggestions are welcomed
thanking you
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you intend this to be a dialog, or should a new activity handle this?
 
arjun narahari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a dialog yes
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic