简体   繁体   中英

Y-axis Rotation for Image in Kotlin

I'm asking about how can I Rotate (Y-axis) a picture in ImageView programmatically in kotlin or java for android Studio as showed below I searched a lot.. Googled it.. but no answers Here an example:

在此处输入图片说明

Another Example:

在此处输入图片说明

To rotate your image on the Y-Axis, All you have to do is set this on your imageView . Keep in mind this is for Java.

imageView.setRotationY(25);

Your image will rotate just like you wanted, you can change the float value if you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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