是否可以使用 onCreate() 函数旋转 ImageButton?或者您是否必须使用启动 onCreate() 的动画?因为通过动画,我可以在 Activity 启动时看到一点“轻弹”...
最佳答案
您可以使用ViewCompat.setRotation(buttonInstance,rotationAngle);
。来自文档
Sets the degrees that the view is rotated around the pivot point.
关于android - 在没有动画的情况下旋转 ImageButton,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27273902/