SyntaxFix
Write A Post
Hire A Developer
Questions
fun rotateArrow(view: View): Boolean { return if (view.rotation == 0F) { view.animate().setDuration(200).rotation(180F) true } else { view.animate().setDuration(200).rotation(0F) false } }