kutils / com.celites.kutils / android.view.View

Extensions for android.view.View

backgroundDrawable

var View.backgroundDrawable: Drawable?

bgColorAnim

fun View.bgColorAnim(from: Int, to: Int): Unit

hideKeyboard

fun View.hideKeyboard(): Unit

readAttributes

fun View.readAttributes(attrs: AttributeSet? = null, stylebleResource: IntArray, attributeReaderFun: (TypedArray) -> Unit = {}): Unit

showPopupMenu

fun View.showPopupMenu(menuId: Int, menuItemClickListener: (MenuItem) -> Unit): Unit