tags:

views:

19

answers:

2

Hi,

I have created ListActivity of images i want touchevent just like onItemClickListner how can i do it? i'm not finding any onItemTochListener plz reply

Thanks

A: 

It's on the list view

getListView().setOnItemClickListener( ... )
David Hedlund
A: 

You don't need to set a new OnClickListener. The ListActivity class has a method called onListItemClicked which registers click and touch events for the items in the list view. Simply override this method with the code you want executed when a list item is pressed.

Zhehao Mao