![I am developing an application where the user can trace the path of a letter.
- There is an animation(moving butterfly) which shows the path of the letter to be traced.
- The animation of the app is working fine but coordinates of the position of the animation of the butterfly are hard coded.
- But when i tried to run same app on larger screens, the animation of butterfly is not in sync with the letter.
- The screenshots of the application which are taken on the large screen(with animation out of sync with respect to the letter) can be seen.
Now my question is, How to determine the position of the letter and dynamically adjust the butterfly animation irrespective of the screen size and the orientation.
https://i.stack.imgur.com/3oszz.png
above picture is the correct path of the butterfly animation
https://i.stack.imgur.com/gbAqx.png
above picture is the incorrect path of the butterfly animation
Please help me and thanks in advance.........