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

Adding the ability to get the parent Activity of a View.

I have some code that allows me to modify a `ColorInt` as an HSV color and returns a `ColorInt`. Basically I can do something like this: ```kotlin textView.textColor = Color.RED.hsv...

enhancement

`URLSpan` is a common text span that deserves its own function in `SpannableStringBuilder.kt`.

A set of collection-like extension functions for `ClipData` just like the ones for `ViewGroup`

What do you think about a simple extension for creating `ComponentName` instances using a `Context`? ```kotlin inline fun Context.componentName() = ComponentName(this, T::class.java) ```

Add extension for RemoteViews. PR with tests. ```java inline fun RemoteViews.setEnabled(@IdRes viewId: Int, enabled: Boolean) = setBoolean(viewId, "setEnabled", enabled) ``` Usage: ```java remoteView.setEnabled(R.id.test_imageView, false) remoteView.setBackgroundResource(R.id.test_textView, R.drawable.box) remoteView.setTextViewPaintFlags(R.id.test_textView, Paint.UNDERLINE_TEXT_FLAG) remoteView.setBackgroundColor(R.id.test_imageView, Color.RED)...

I have created Kotlin replacement for Android's [AsyncTask](https://developer.android.com/reference/android/os/AsyncTask). It's well tested on few larger projects of mine, it works beautifully and would fit this library. Example: ``` asyncTask({ doSomething() }){...

Hi, Recently I found OneShotPreDrawListener class in android framework which looks for me like a solution which covers all the cornercases like removing the view from the hierarchy before the...