All Projects → jiang111 → Kotlin-Extract

jiang111 / Kotlin-Extract

Licence: other
Kotlin-Extract

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Kotlin-Extract

stateful
Stateful is a Kotlin library which makes Android application development faster and easier.
Stars: ✭ 66 (+288.24%)
Mutual labels:  kotlin-android-extensions
KotlinMultiplatformAndoridParcelize
Use the Parcelize Annotation of the Kotlin Android Extensions in Kotin Multiplatform projects
Stars: ✭ 16 (-5.88%)
Mutual labels:  kotlin-android-extensions
AmniXTension
A Kotlin extensions + Utils library with Bunch of Help
Stars: ✭ 34 (+100%)
Mutual labels:  kotlin-android-extensions
android-commons
Collection of custom utilities for Android development.
Stars: ✭ 19 (+11.76%)
Mutual labels:  kotlin-android-extensions
Kotlin-Animation-DSL
simplify Android animation code by redefining API, use just one third of code to create animation compare to origin Android API
Stars: ✭ 45 (+164.71%)
Mutual labels:  kotlin-android-extensions
ObservableCollections
Observable Collectons for Android Kotlin apps. Observes adds, deletes etc.
Stars: ✭ 19 (+11.76%)
Mutual labels:  kotlin-android-extensions
media-picker
Easy customizable picker for all your needs in Android application
Stars: ✭ 167 (+882.35%)
Mutual labels:  kotlin-android-extensions
AndroidCleanArchitecture
Android Project with clean android architecture contain Dagger, Retrofit, Retrofit, Android archtecture components, LiveData with MVVM architecture
Stars: ✭ 22 (+29.41%)
Mutual labels:  kotlin-android-extensions
awesome-kotlin-libraries-for-android
😎 A curated list of awesome Kotlin libraries for Android.
Stars: ✭ 53 (+211.76%)
Mutual labels:  kotlin-android-extensions
locus-android
An Awesome Kotlin Location library to retrieve location merely in 3 lines of code
Stars: ✭ 280 (+1547.06%)
Mutual labels:  kotlin-android-extensions

Kotlin-Extract

Kotlin-Extract is a "toolbox" for Kotlin Android developer. like anko , The library contains a lot of helpers for Android SDK, including, but not limited to:

depend

Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Step 2. Add the dependency

	dependencies {
	        compile 'com.github.jiang111:Kotlin-Extract:lasted_version'
	}

Feature

  • toast
_toast("hello")
_long_toast("hello")
  • dp,sp,px
_dip2px(20)
_sp2px(20)
...
  • SharedPreference

config in your application

SharedPreferenceImpl.init(this, "name")

then

sp_saveString("key","value")
sp_getString("key")
...
  • async
val t = _async {
    Thread.sleep(3000)
    _runUI {
      hello.text = "hello"
    }
}
t.cancel()
  • startActivity/Sercice
_startActivity<Activity>("id" to 5, "name" to "hello", "age" to 12, "male" to true)
_startService<Service>("id" to 5, "name" to "hello", "age" to 12, "male" to true)
...
  • loadColor/Drawable
_loadColor(R.color.f)
_loadDrawable(R.drawable.f)
...
  • log
//in Application
LogImpl.init(debug,tag)
// use in any class
_i(msg="msg",tag="tag")
_i(msg="msg")
_json(msg="msg",tag="tag")
_json(msg="msg")
...
  • View
view.hide()
view.show()
view.invisible()
view.toggle()
view.fadeIn()
view.fadeOut()
EditText.showKeyBoard()
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].