listview - Android list view on click -


i have list view 15 items. when click on item want change screen(intent). how can change activity on item selected in android? tutorial or source code?

you can use listview's setonitemclicklistener, , start new activity in implementation of method. following sample code:

mylistview.setonitemclicklistener(new adapterview.onitemclicklistener() {     public void onitemclick(adapterview parent, view v, int position, long id){         // start activity according item clicked.     } }); 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -