permaculture playing cards*
The moose likes Android and the fly likes GestureListener on gridview Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "GestureListener on gridview" Watch "GestureListener on gridview" New topic
Author

GestureListener on gridview

chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 629

Does any one has the code of GestureListener on gridview items .because i should perform left ,right flig on gridview and long press and touch and click on gridview items. .while long press on the items in grid view i should get the x,y coordinate values,but
gridview.setOnItemLongClickListener(new OnItemLongClickListener()
{

@Override
public boolean onItemLongClick(AdapterView<?> arg0, View arg1,
int arg2, long arg3) {}

this long clickable does not have parameters of motionevent...


can any one tell how to add gesturelistener on gridview


http://www.androcid.com/
David Bei
Greenhorn

Joined: Aug 30, 2010
Posts: 1
We must do 2 steps to work the long press event:

1. set item's long click listener:



2. in our Adapter's overided function "getView", we shuold set every item be LongClickable.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GestureListener on gridview