I have created an animation for an image in my application. The image starts coming from the middle till the top left corner of screen. Now I need to make sure that the image get placed at the right position in all the devices which is at the top left corner. Currently it gets placed at different positions for different devices at the top left corner. How can I fix it ? I have my code as follows :
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator"
android:fillAfter="true">
<translate
android:fromXDelta="0%p"
android:toXDelta="-36%p"
android:fromYDelta="0%p"
android:toYDelta="-30.9%p"
android:duration="500"
android:fillAfter="true" />
</set>
Can anyone please help.