Android spinner with Super power!
- Step 1 - set JCenter repository (This step not require for modern android project)
- Step 2 - Add dependencies on app module
dependencies {
compile 'me.piruin:spinney:VERSION'
}
With kotlin
, Because of Spinney's generic type make kotlin-android-extension
can't synthetic it properly, I recommend to initialize Spinney with Lazy
. see example
class AwesomeActivity : AppCompatActivity {
val awesomeSpinney by lazy { findViewById(R.id.awesomeSpinney) as Spinney<Awesome> }
...
}
This project under Apache 2.0 license