No it does not - at least this is the result of my test. I got an ICS and a Honeycomb devices - the getY() values are exactly 56 pixels too low when the same app run on them. I have to subtract 56 from the getY() to get the correct position. Same code works fine on 2.x and 1.x device.
I am the author of some popular kids painting softwares, and this has been the issue I faced for quite some times. 在 2012年7月4日星期三UTC+8上午7时16分24秒,Mark Murphy (a Commons Guy)写道: > > On Tue, Jul 3, 2012 at 6:53 PM, limtc <[email protected]> wrote: > > I am doing a painting program and the MotionEvent getY() returns > contains > > the height of action bar. I need to subtract the height away. > > Really? I would expect that the MotionEvent getY() would be with > respect to your View that is receiving the touch event. > > -- 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

