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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -