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

Sometimes an optional Int or Double value needs to be put into Bundle or read from it. The following API seems reasonable: bundle.putNullableInt(VALUE, value); val result = bundle.getNullableInt(VALUE); Possible implementation:...

Hi, On the page https://android.github.io/android-ktx/core-ktx/androidx.content/android.content.-shared-preferences/index.html the link to SharedPreferences.Editor.apply brings us to a 404 error page.

Context.hideSip(view: View) Context.showSip(view: View) Activity.hideSip() Activity.showSip()

Suppose you wish to perform an operation on a view and all its descendants. I've made some functions in the past that resemble this. For example, I've made one to...

This is an extension function I frequently end up writing and using in projects: ```kotlin @RequiresApi(26) fun Activity.setNavigationBarStyle() = window.apply { decorView.systemUiVisibility = decorView.systemUiVisibility or View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR } ``` (off the...

Usually we construct animators starting with a call to e.g. ValueAnimator#ofXY, continuing with configuration in builder style - because the api allows it. Until now, and also with the current...

To my mind it would be nice to have some extension for setting many items to the SharedPreferences, something like this: ```kotlin prefs.putAll("key0" to 2, "key1" to "text", "key2" to...