Hi,

Touchscreen co-ordinates seem to be absolute device/screen
coordinates, so you need to account for this offset for your app
screens when status bar is present.

Be careful though are status bar is not always present, it can be
different heights for different Android versions/devices & on Android
3.0+ devices is at bottom of screen rather than top of screen.

I'd also be interested to know how others handle this effectively &
generically given the variables mentioned.

Regards

On Apr 13, 11:50 pm, henry <[email protected]> wrote:
> When I develop a app, I click at the up-left corner, I got x=0 y=59 or
> something. How do I determine the y value? There are two rows above my
> Touchable screen in my app:
> 1 first line/row is a tool/status bar which I don't know how to access
> it
> 2. next line is my app name like "Hello World".
> I think this two play a role to determine the y value.
> How do I termine origin y value in my program?
>
> -Henry

-- 
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

Reply via email to