I initialize ObjectAnimator like this;
ObjectAnimator anim = ObjectAnimator.ofFloat(view, "translationY", 0f, view.getHeight());
But when the first time animation runs, view.getHeight() method returns 0. So it does not animate. Second time i run the animation, it animates right. Is there a way to translate views relative to their width or height properly?