简体   繁体   English

旋转Y在某些手机上不起作用

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM