android - TranslateAnimation with %p not working in in samsung S3 -
Hi friends, I am translating the animation where I need to move my view (which is at the center of the screen But not at all) at the top so that it can be kept 9 DP from the top in the container. I have come to know that if I translate the view from 0% to P to 52%, then it will fit exactly in the container layout for the XHDDI device. Google Galaxy Nexus device (720 x 1280) but the same thing is not working on Samsung S3 In S3, I need to go to the page 50% to see. Please tell me how can I solve the issues dependent on this device? And why does this happen?
Thanks in advance.
You can use different animation values for different screens. For example you can put the same XML file for the animation values in- xhdpi and some value switches. In this way all xhdpi devices will load the animation all the other device will load the default animation.
Comments
Post a Comment