Did you try: event.getRawX() event.getRawY()
On Aug 21, 3:48 am, China-jlu-wangliang <[EMAIL PROTECTED]> wrote: > yeah,i have tried to use the functions that you said,but when i > pressed on the button i can't get the raw coordinate. > > On 8月18日, 下午12时10分, andylau <[EMAIL PROTECTED]> wrote: > > > hi, try to use flows > > > event.getX(); > > event.getY(); > > > On Aug 1, 11:35 am, China-jlu-wangliang <[EMAIL PROTECTED]> wrote: > > > > I knowonTouchEvent(MotionEventevent) ,but when i press a > > > button,if i can get the coordinate by usingonTouchEvent(MotionEvent > > > event) ,and how to do that.- 隐藏被引用文字 - > > > - 显示引用的文字 - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---