Home Forum
Welcome, Guest
Username Password: Remember me

Problems getting correct X/Y position
(1 viewing) (1) Guest
Discussion related to creating Android software
  • Page:
  • 1

TOPIC: Problems getting correct X/Y position

Problems getting correct X/Y position 2 years, 11 months ago #149

I am using oNTouchEvent () and on the up click event i am reading the
x and y positions of where the click occured.

Mow on the G1 the width of the screen is 320 pixels across, but sometimes i get a value greated than 320... What is happening

int xPos = (int)aEvent.getX ();

Any ideas??
  • Navaronuk
  • OFFLINE
  • Freshman
  • Posts: 4
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.16 seconds
Copyright © 2012 Android Academy. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.
 
Glossary
We have 31 guests online