I have a list view with list item that has one CheckBox and two
TextViews. I have set on touch listener to each of these widgets. Now
when I do swipe to the right the x co-ordinates are recorded correctly
by
the onTouch event listener. When I do swipe to the left it shows
negative
value for x co-ordinate. Is this a bug or I am missing something.
My phone is motorola droid.
code
------------
public boolean onTouch(View v, MotionEvent event) {
Log.d(TAG, "ListAdapter.onTouch x="+event.getX());
return false;
}
result
-----------------
ListAdapter.onTouch x=1.4075205
ListAdapter.onTouch x=1.4075205
ListAdapter.onTouch x=20.879065
ListAdapter.onTouch x=120.67073
ListAdapter.onTouch x=222.89635
ListAdapter.onTouch x=349.94818
ListAdapter.onTouch x=472.1321
ListAdapter.onTouch x=472.1321
ListAdapter.onTouch x=337.22662
ListAdapter.onTouch x=322.623
ListAdapter.onTouch x=300.71747
ListAdapter.onTouch x=271.99695
ListAdapter.onTouch x=230.13315
ListAdapter.onTouch x=3.2896347
ListAdapter.onTouch x=-44.902443(negative)
ListAdapter.onTouch x=-75.08333(negative)
ListAdapter.onTouch x=-75.08333(negative)
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en