This code gives me wrong output, im not sure why, and I am going crazy.
float correctX=((getWidth()/599)*x);
float correctY=((getHeight()/740)*y);
The result I get is: x = 520 y = 900.
And logcat output log: DETAILS----------Width: 1080. Heigth: 1533. X Value: 520. Y Value: 450
Why ? I have no clue and Im going crazy, i dont even know if its the correct syntax anymore lol.
I use android studio btw