Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • 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: 42970
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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!