How do I convert a pixel location (x and y coordinates) from one Android device to other Android devices with different screen size and different resolution?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One method: Divide x,y by the screen width and height resulting in a float from 0.0 to 1.0 and then multiply those 2 factors to 2nd device’s screen width and height.