![](/img/trans.png)
[英]TextView text animation is restarted if the text is changed in another TextView
[英]TextView goes behind another textview during animation
我想使用属性动画将视图从左向右移动
ObjectAnimator animator = ObjectAnimator.ofFloat(textView1, "translationX", 400);
但动画开始的时候,这个动画覆盖视图目标视图右侧在这里输入图像描述
动画开始时我想在textView2的顶部显示textView1。该怎么办?
尝试使用textview1.bringToFront();
在开始动画之前。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.