Releases: EmanueleMelini/KotlinAndroidUtils
Releases · EmanueleMelini/KotlinAndroidUtils
1.1.2
Updated extensions:
Added onDismiss
callback on the Context.dialog
functions
fun Context.dialog(@StringRes title: Int, @StringRes message: Int, @StringRes positive: Int?, @StringRes negative: Int?, posAction: (MaterialDialog) -> Unit, negAction: (MaterialDialog) -> Unit, dismissAction: ((MaterialDialog) -> Unit)? = null)
fun Context.dialog(title: String, message: String, positive: String?, negative: String?, posAction: (MaterialDialog) -> Unit, negAction: (MaterialDialog) -> Unit, dismissAction: ((MaterialDialog) -> Unit)? = null)
1.1.1
Updated extensions:
Added self return for method concatenation
TextView.toUnderlinedClickable(from: String, to: String, @ColorInt color: Int, action: () -> Unit): TextView
1.0.4
Added new extensions:
Checks if the device is in Night Mode
Context.isNightMode(): Boolean
Change color, add underline and add action on click on a part of a TextView
TextView.toUnderlinedClickable(from: String, to: String, @ColorInt color: Int, action: () -> Unit)
1.0.3
Added new extensions:
Display a Material Dialog with Strings instead of String Resources
Context.dialog(title: String, message: String, positive: String?, negative: String?, posAction: (MaterialDialog) -> Unit, negAction: (MaterialDialog) -> Unit)
Search and returns the given String in the given .properties
file
Context.getConfig(name: String?, @RawRes config: Int): String?
1.0.2
Fixed error in release 1.0.1 where gradle asking google-services.json
1.0.1
Added some new extensions and a new file Functions.kt containing some functions
1.0.0
First release!