fun View.addGlobalLayoutListener(l: OnGlobalLayoutListener): Unit |
|
fun View.animate(animationResId: Int): Unit
Loads and begins animation with specified resource id. fun View.animate(animationResId: Int, butFirst: Animation.(View) -> Unit = {}, andThen: Animation.(View) -> Unit = {}, onRepeat: Animation.(View) -> Unit = {}): Unit
Loads and begins animation with specified resource id, optionally executing a block specified by butFirst prior to animation, andThen following the animation, and onRepeat upon repeat. fun View.animate(animation: Animation, butFirst: Animation.(View) -> Unit = {}, andThen: Animation.(View) -> Unit = {}, onRepeat: Animation.(View) -> Unit = {}): Unit
Begins animation, optionally executing a block specified by butFirst prior to animation, andThen following the animation, and onRepeat upon repeat. |
|
fun View.collapse(): Unit
Sets receiver's visibility View.GONE. |
|
fun View.collapseIf(value: Boolean): Unit
Sets receiver's visibility to View.GONE if value is true; sets it to View.VISIBLE otherwise. Opposite of expandIf; also see hideIf. |
|
fun View.expand(): Unit
Sets receiver's visibility View.VISIBLE. |
|
fun View.expandIf(value: Boolean = false): Unit
Sets receiver's visibility to View.VISIBLE if value is true; sets it to View.GONE otherwise. Opposite of collapseIf; also see showIf. |
|
fun <T> View.findParent(): T?
Finds parent of the view of type T, not including the view itself. |
|
fun View.hide(): Unit
Sets receiver's visibility View.INVISIBLE. |
|
fun View.hideIf(value: Boolean): Unit
Sets receiver's visibility to View.INVISIBLE if value is true; sets it to View.VISIBLE otherwise. Opposite of showIf; also see collapseIf. |
|
val View.isCollapsed: Boolean
Returns true if receiver's View.getVisibility is View.GONE. |
|
val View.isExpanded: Boolean
Returns true if receiver's View.getVisibility is View.VISIBLE. |
|
val View.isHidden: Boolean
Returns true if receiver's View.getVisibility is View.INVISIBLE. |
|
val View.isVisible: Boolean
Same as isExpanded. |
|
fun View.removeGlobalLayoutListener(l: OnGlobalLayoutListener): Unit |
|
fun View.showIf(value: Boolean): Unit
Sets receiver's visibility to View.VISIBLE if value is true; sets it to View.INVISIBLE otherwise. Opposite of hideIf; also see expandIf. |
|
fun View.showPopup(: Int, onInit: PopupMenu.() -> Unit = {}, onClick: (MenuItem) -> Boolean): Unit
Displays a popup by inflating menu with specified menu resource id, calling onClick when an item is clicked, and optionally calling onInit with PopupMenu as receiver to initialize prior to display. |