0

Android Spinner each element different color

Is there a way in android, using Kotlin, to set each element of a spinner to have a different color? I have a spinner_item.xml and a spinner in the activity_main.xml. I can set all items to have a color in spinner_item.xml, but is there a way to do it so that each individual element has a different color? Thanks!

15th Jul 2019, 7:12 PM
Paul Grasser
Paul Grasser - avatar
1 Réponse
+ 1
Oh, you can use lottie library.you can make interactive spinner animation using adobe after effect or InDesign then using lottie change to JSON and add little library to ur android studio grade file finally load the animation file. in kotlin file when you want to stop the anim change the visibility to gone
28th Jun 2020, 2:43 PM
Ananiya Jemberu
Ananiya Jemberu - avatar