View view = findViewById(resId);
float rotation = view.getRotation();
if(rotation == 180) {
view.animate().rotation(0);
}else {
view.animate().rotation(180);
}
View旋转180动画
于 2022-01-21 10:54:45 首次发布
View view = findViewById(resId);
float rotation = view.getRotation();
if(rotation == 180) {
view.animate().rotation(0);
}else {
view.animate().rotation(180);
}