Android : How can I use ObjectAnimator parameters to adjust for all devices?

on Friday, September 5, 2014


I want to use ObjectAnimator to move a textView in the Y axis.This code works but it is not suitable for every device because of the screen sizes.



ObjectAnimator mover = ObjectAnimator.ofFloat(expand, "translationY", -250, 0);


How can I change the last two parameters?There are also similar questions there I tried these also but they don't work.


0 comments:

Post a Comment