Skip to content Skip to sidebar Skip to footer

Andengine Camera And Device Display : Ratio Between Co-ordinates On Each

I'm using a FrameLayout on top of Andengine camera to add a button. I need to align the button to a sprite on the andengine camera. I'm using gravity top in the frame layout and a

Solution 1:

As, it most of the time happens, found the solution myself.

Like i mentioned in my question the code above was getting me close results but not accurate. I figured the deviation was because i had scaled the button to 0.6f. Removed the scaling and it is working perfect.

Post a Comment for "Andengine Camera And Device Display : Ratio Between Co-ordinates On Each"