Skip to content

piruin/spinney

Repository files navigation

Spinney

Build Status Download license

Android spinner with Super power!

Getting Started

Download

  • 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'
}

Use with Kotlin

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> }
  ...
}

License

This project under Apache 2.0 license