Amir Panahandeh
Amir Panahandeh

Reputation: 9029

Rotation Y not working on some phones

I have a property ViewPropertyAnimator that rotates ImageView on axis y

animate().rotationY(180).alpha(0).setDuration(300).start();

it's working well but in a Huawei device it disappears ImageView. I changed rotationY to rotation and it was working. What is wrong?

Upvotes: 2

Views: 341

Answers (1)

try to use view.setCameraDistance(10 * view.getWidth());

Upvotes: 1

Related Questions