Oleh Ponomarenko
09/03/2019, 12:55 PMit as ImageButton
it.rotateSmoothly()
Like this:
(ImageButton) it.rotateSmoothly();
mbonnin
09/03/2019, 12:56 PM(it as ImageButton).rotateSmoothly()
mbonnin
09/03/2019, 12:56 PMOleh Ponomarenko
09/03/2019, 12:57 PMpp.amorim
09/03/2019, 3:14 PM(it as? ImageButton)?.rotateSmoothly()
to be safeepool
09/03/2019, 3:45 PMif (it is ImageButton) it.rotateSmoothly()
to take advantage of the smart casting 😉