开发者

android touchevent for listActivity

I have created ListActivity of images I want toucheven开发者_如何学Ct just like onItemClickListner, how can I do it? I'm not finding any onItemTochListener.


It's on the list view

getListView().setOnItemClickListener( ... )


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜