I am using ObjectAnimator and cannot figure out how to scale in x ax in only one direction, for example, on the right side. Because when im scales, it scales in both directions, and then my ImageView doesn't work. I know that I can add transition X to prevent the screen from exiting, but the best solution will scale in one direction.
ObjectAnimator headAnim = ObjectAnimator.ofFloat(imageHead, "scaleX", 1f, 1.5f); headAnim.setDuration(1000); headAnim.start();
source share