RichUtils / pyxis.uzuki.live.richutilskt.utils / android.app.Activity

Extensions for android.app.Activity

hideKeyboard

fun Activity.hideKeyboard(): Unit

hide keyboard

setStatusBarTheme

fun Activity.setStatusBarTheme(isDark: Boolean): Unit

change theme of StatusBar it will available android 23 and above.

setStatusNavBarColor

fun Activity.setStatusNavBarColor(statusBarColor: Int, window: Window = this.window, navigationBarColor: Int = statusBarColor): Unit

Set Color of status bar and navigation bar