android-ktx icon indicating copy to clipboard operation
android-ktx copied to clipboard

A set of Kotlin extensions for Android app development.

Results 87 android-ktx issues
Sort by recently updated
recently updated
newest added

When accessing an extra in an Activity's intent, it's convenient, more often than not, to throw an exception if the extra is missing. Something like this: ```kotlin val someInt =...

This implements #265. Usage: ```kotlin class MyActivity : Activity { private val id by extra("id") private val timestamp by extra("timestamp") private val name by extra("name") { "Default Name" } }...

Usefull when you want to retrieve a string resource which contains styling information and also acts as a format string. See [String Resources Documentation](https://developer.android.com/guide/topics/resources/string-resource.html#StylingWithHTML).

Add Context extensions for Resources methods: getBoolean -> https://developer.android.com/reference/android/content/res/Resources.html#getBoolean(int) getInteger -> https://developer.android.com/reference/android/content/res/Resources.html#getInteger(int) getDimension -> https://developer.android.com/reference/android/content/res/Resources.html#getDimension(int)

Following method is ignored by `checkApi` as well as by `updateApi`: ```kotlin inline fun doSomething() { } ``` As follows `Context.systemService` is absent in `current.txt`.

blocked

`with` from Kotlin stdlib returns value of its last expression, if any, and in other places of the Kotlin world, `withXXX` methods do the same to follow this convention, yet...

Useful method to set text size given a `R.dimen` resource ```kotlin /** * Set this TextView text size with a R.dimen constant * * @param dimen R.dimen reference */ fun...

variants of ```kotlin inline fun LayoutInflater.inflate(...) : T { return inflate(...) as T } ``` The Android SDK now helps me out in View.findViewById but not with LayoutInflater.inflate. (filed here:...

The overlay methods will apply a provided span to matching substrings of the receiver. In `.overlay`, it will apply to only the first matching occurrence, while `.overlayAll` will apply the...

``` SeekBar.onSeek { //optional use onProgressChanged { seekBar, progress, fromUser -> } //optional use onStartTrackingTouch { } //optional use onStopTrackingTouch { } } ```