[英]Rotation Y not working on some phones
I have a property ViewPropertyAnimator
that rotates ImageView
on axis y 我有一个属性
ViewPropertyAnimator
,它在y轴上旋转ImageView
animate().rotationY(180).alpha(0).setDuration(300).start();
it's working well but in a Huawei device it disappears ImageView
. 它工作正常,但在华为设备中它消失了
ImageView
。 I changed rotationY
to rotation
and it was working. 我将
rotationY
更改为rotation
并且可以正常工作。 What is wrong? 怎么了?
尝试使用view.setCameraDistance(10 * view.getWidth());
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.