开发者

android touchevent for listActivity

开发者 https://www.devze.com 2022-12-31 09:13 出处:网络
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

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

精彩评论

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

关注公众号