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
Post a Comment