| Author |
GestureListener on gridview
|
chetan dhumane
Ranch Hand
Joined: Jan 07, 2009
Posts: 628
|
|
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.
|
 |
 |
|
|
subject: GestureListener on gridview
|
|
|