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

Extends `Cursor` to provide functions to check i the cursor is empty or not ## Usage if(cursor.isEmpty()) { // we can show an empty screen } if(cursor.isNotEmpty()) { // We...

Get the MIME type of a `File` via ```kotlin val type: String? = file.getMimeType() ```

I think it would be great if bitmap has an extension for checking if the bitmap is empty or not based on the byte count. ``` if (bitmap.isEmpty()){ // Did...

It would be nice to have something like `val mString = view.tag()`

ViewPropertyAnimator extensions like the existing Animator extensions

I'm not sure that this is a good idea, cause we'd have a new instance of Handler each time this function is called, but would it worth to have something...

I'm really not sure what to do about the parameter order. `flags` seem like the most useful and they're present on every overload so I put them first, but it's...

I think it would be extremely useful to extend the `android.util.Log` API with the functionality of lazy `String` messages and default `tag` parameters like so ```kotlin Log.i("tag") { "msg" }...

I'd like to propose a helper function for the JobScheduler API which is fairly cumbersome in Kotlin right now even with current KTX features. The signature of the function would...