Package renetik.android.ui.extensions.view

Functions

Link copied to clipboard
fun View.action(action: CSEvent<Unit>): View
Link copied to clipboard
fun View.activated(value: Boolean = true): View
Link copied to clipboard
fun View.activatedIf(value: Boolean): View
fun View.activatedIf(property: CSProperty<Boolean>): CSRegistration
inline fun <T> View.activatedIf(property: CSProperty<T>, crossinline condition: (T) -> Boolean): CSRegistration
inline fun <T> View.activatedIf(    property1: CSProperty<T>,     property2: CSProperty<*>,     crossinline condition: (T) -> Boolean): CSRegistration
fun <T, V> View.activatedIf(    property1: CSProperty<T>,     property2: CSProperty<V>,     condition: (T, V) -> Boolean): CSRegistration
fun <T, V, X> View.activatedIf(    property1: CSProperty<T>,     property2: CSProperty<V>,     property3: CSProperty<X>,     condition: (T, V, X) -> Boolean): CSRegistration
fun <T, V, X, Y> View.activatedIf(    property1: CSProperty<T>,     property2: CSProperty<V>,     property3: CSProperty<X>,     property4: CSProperty<Y>,     condition: (T, V, X, Y) -> Boolean): CSRegistration
Link copied to clipboard
fun <T> View.activateIf(property: CSProperty<T>, value: T): CSRegistration
Link copied to clipboard
fun <ViewType : View> ViewGroup.add(view: ViewType, index: Int = -1): ViewType
fun <ViewType : View> ViewGroup.add(@LayoutRes layoutId: Int, index: Int = -1): ViewType
fun <ViewType : View> ViewGroup.add(    view: ViewType,     layout: ViewGroup.LayoutParams,     index: Int = -1): ViewType
fun <ViewType : View> ViewGroup.add(    @LayoutRes layoutId: Int,     layout: ViewGroup.LayoutParams,     index: Int = -1): ViewType
Link copied to clipboard
fun <T : View> T.afterGlobalLayout(parent: CSHasRegistrations, function: (View) -> Unit): CSRegistration
Link copied to clipboard
fun View.alphaToDisabled(value: Boolean = true)
Link copied to clipboard
fun <T : View> T.background(@DrawableRes value: Int): T
fun <T : View> T.background(value: CSColorInt): T
Link copied to clipboard
fun <T : View> T.backgroundColor(@ColorInt value: Int): T
Link copied to clipboard
fun <T : View> T.backgroundRoundedWithColor(@ColorInt value: Int, radius: Float = 8.0f)
Link copied to clipboard
fun <T : View> T.backgroundTint(@ColorInt value: Int): T
Link copied to clipboard
fun <T : View> T.bottomMargin(value: Int): T
Link copied to clipboard
fun View.button(@IdRes id: Int): Button
Link copied to clipboard
fun View.checkBox(@IdRes id: Int): CheckBox
Link copied to clipboard
fun ViewGroup.childAt(condition: (View) -> Boolean): View?
Link copied to clipboard
fun <T : ViewGroup> T.clear(): T
Link copied to clipboard
fun View.compound(@IdRes id: Int): CompoundButton
Link copied to clipboard
fun <T : View> T.createBitmap(): Bitmap
Link copied to clipboard
fun View.datePicker(@IdRes id: Int): DatePicker
Link copied to clipboard
fun <T : View> T.disabled(value: Boolean = true): T
Link copied to clipboard
fun View.disabledByAlpha(condition: Boolean = true, disable: Boolean = true)
Link copied to clipboard
fun View.disabledByAlphaIf(property: CSProperty<Boolean>, disable: Boolean = true): CSRegistration
fun <T> View.disabledByAlphaIf(    property: CSProperty<T>,     disable: Boolean = true,     condition: (T) -> Boolean): CSRegistration
fun <T, V> View.disabledByAlphaIf(    property1: CSProperty<T>,     property2: CSProperty<V>,     condition: (T, V) -> Boolean): CSRegistration
Link copied to clipboard
fun View.disabledByAlphaIfNot(property: CSProperty<Boolean>, disable: Boolean = true): CSRegistration
Link copied to clipboard
fun <T : View> T.disabledIf(condition: Boolean): T
fun View.disabledIf(property: CSProperty<Boolean>): CSRegistration
fun <T> View.disabledIf(property: CSProperty<T>, condition: (T) -> Boolean): CSRegistration
fun <T, V> View.disabledIf(    property1: CSProperty<T>,     property2: CSProperty<V>,     condition: (T, V) -> Boolean): CSRegistration
Link copied to clipboard
fun View.editText(@IdRes id: Int): EditText
Link copied to clipboard
fun <T : View> T.enabled(enabled: Boolean = true): T
Link copied to clipboard
fun View.enabledByAlphaIf(condition: Boolean)
fun View.enabledByAlphaIf(property: CSProperty<Boolean>): CSRegistration
fun <T> View.enabledByAlphaIf(property: CSProperty<T>, condition: (T) -> Boolean): CSRegistration
fun <T> View.enabledByAlphaIf(    property1: CSProperty<T>,     property2: CSProperty<*>,     condition: (T) -> Boolean): CSRegistration
fun <T, V> View.enabledByAlphaIf(    property1: CSProperty<T>,     property2: CSProperty<V>,     condition: (T, V) -> Boolean): CSRegistration
Link copied to clipboard
fun <T : View> T.enabledIf(condition: Boolean): T
Link copied to clipboard
fun <T : View> T.endMargin(value: Int): T
Link copied to clipboard
fun View.enterFullScreen()
Link copied to clipboard
fun View.exitFullscreen()
Link copied to clipboard
fun <T : View> T.fadeIn(duration: Int = shortAnimationDuration): ViewPropertyAnimator?
Link copied to clipboard
fun <T : View> T.fadeOut(    duration: Int = shortAnimationDuration,     invisible: Boolean = false,     onDone: () -> Unit? = null): ViewPropertyAnimator?
Link copied to clipboard
fun <T : View> View.findView(@IdRes id: Int): T?
Link copied to clipboard
fun <T : View> View.findViewRecursive(id: Int): T?
Link copied to clipboard
fun <T : View> T.foregroundTint(@ColorInt value: Int): T
Link copied to clipboard
fun View.frame(@IdRes id: Int): FrameLayout
Link copied to clipboard
fun View.getRectangleOnScreen(location: IntArray, rectangle: Rect)
Link copied to clipboard
fun <T : View> T.gone(animated: Boolean = false): T
Link copied to clipboard
fun <T : View> T.goneIf(condition: Boolean, animated: Boolean = false): T
fun View.goneIf(property: CSProperty<Boolean>, animated: Boolean = false): CSRegistration
fun <T> View.goneIf(    property: CSProperty<T>,     animated: Boolean = false,     condition: (T) -> Boolean): CSRegistration
fun View.goneIf(    property1: CSProperty<Boolean>,     property2: CSProperty<Boolean>,     animated: Boolean = false): CSRegistration
fun <T, V> View.goneIf(    property1: CSProperty<T>,     property2: CSProperty<V>,     animated: Boolean = false,     condition: (T, V) -> Boolean): CSRegistration
Link copied to clipboard
fun View.group(@IdRes id: Int): ViewGroup
Link copied to clipboard
fun <T : View> T.hasSize(parent: CSHasRegistrations, onHasSize: (View) -> Unit)
Link copied to clipboard
fun <T : View> T.height(value: Float): T
fun <T : View> T.height(value: Int): T
Link copied to clipboard
fun <T : View> T.heightDp(value: Int): T
Link copied to clipboard
fun <T : View> T.hide(animated: Boolean = false): T
Link copied to clipboard
fun <T : View> T.horizontalMargin(value: Int): T
Link copied to clipboard
fun <T : View> T.horizontalMarginDp(value: Int): T
Link copied to clipboard
fun View.horizontalScroll(@IdRes id: Int): HorizontalScrollView
Link copied to clipboard
fun View.id(value: Int): View
Link copied to clipboard
fun View.imageView(@IdRes id: Int): ImageView
Link copied to clipboard
fun <ViewType : View> ViewGroup.inflate(@LayoutRes layoutId: Int): ViewType
Link copied to clipboard
fun <T : View> T.invisible(animated: Boolean = false): T
Link copied to clipboard
fun <T : View> T.invisibleIf(condition: Boolean, animated: Boolean = false): T
fun View.invisibleIf(property: CSProperty<Boolean>, animated: Boolean = false): CSRegistration
fun <T> View.invisibleIf(    property: CSProperty<T>,     animated: Boolean = false,     condition: (T) -> Boolean): CSRegistration
Link copied to clipboard
fun MotionEvent.isInside(view: View): Boolean
Link copied to clipboard
fun View.isShowing(): Boolean
Link copied to clipboard
fun Menu.item(id: Int): MenuItem
Link copied to clipboard
fun View.linear(@IdRes id: Int): LinearLayout
Link copied to clipboard
fun View.listView(@IdRes id: Int): ListView
Link copied to clipboard
fun <T : View> T.margin(value: Int): T
Link copied to clipboard
fun <T : View> T.marginDp(value: Int): T
Link copied to clipboard
fun <T : View> T.margins(    left: Int,     top: Int,     right: Int,     bottom: Int): T
Link copied to clipboard
fun <T> View.model(): T?
fun <T> View.model(value: T?): View
Link copied to clipboard
fun <T> View.modelProperty(): CSProperty<T?>
Link copied to clipboard
fun View.numberPicker(@IdRes id: Int): NumberPicker
Link copied to clipboard
fun ViewPropertyAnimator.onAnimationEnd(function: Func): ViewPropertyAnimator
Link copied to clipboard
fun <T : View> T.onClick(onClick: (view: T) -> Unit): T
fun View.onClick(action: CSActionInterface): View
Link copied to clipboard
fun View.onDestroy()
Link copied to clipboard
inline fun <T : View> T.onDoubleTap(crossinline function: (T) -> Unit): T
Link copied to clipboard
fun <T : View> T.onGlobalFocus(function: (View?, View?) -> Unit): CSRegistration
Link copied to clipboard
fun <T : View> T.onGlobalLayout(function: (CSRegistration) -> void): CSRegistration
Link copied to clipboard
inline fun View.onLayoutChange(crossinline function: () -> Unit): CSRegistration
Link copied to clipboard
fun <T : View> T.onLongClick(onClick: (view: T) -> Unit): T
Link copied to clipboard
fun View.onScrollChange(function: (view: View) -> Unit): CSRegistration
Link copied to clipboard
fun <T : View> T.padding(dp: Int = -1, px: Int = -1): T
Link copied to clipboard
fun <T : View> T.paddingDp(horizontal: Int = -1, vertical: Int = -1): T
fun <T : View> T.paddingDp(    left: Int,     top: Int,     right: Int,     bottom: Int): T
Link copied to clipboard
fun <T : View> T.paddingHorizontal(dp: Int = -1, px: Int = -1): T
Link copied to clipboard
fun <T : View> T.paddingVertical(dp: Int = -1, px: Int = -1): T
Link copied to clipboard
fun View.performTouchDown(): Boolean
Link copied to clipboard
fun View.pressedIf(value: Boolean): View
fun <T> View.pressedIf(    property1: CSProperty<T>,     property2: CSProperty<*>,     condition: (T) -> Boolean): CSRegistration
fun <T, V> View.pressedIf(    property1: CSProperty<T>,     property2: CSProperty<V>,     condition: (T, V) -> Boolean): CSRegistration
Link copied to clipboard
fun View.progress(@IdRes id: Int): ProgressBar
Link copied to clipboard
fun <T : Any> View.propertyWithTag(@IdRes key: Int, onCreate: () -> T): T
Link copied to clipboard
fun View.radio(@IdRes id: Int): RadioButton
Link copied to clipboard
fun <T : ViewGroup> T.remove(view: View): T
Link copied to clipboard
fun ViewGroup.removeAt(index: Int): View
Link copied to clipboard
fun <T : View> T.removeFromSuperview(): T
Link copied to clipboard
fun <T : ViewGroup> T.removeSubViews(): T
Link copied to clipboard
fun ViewGroup.removeViews(from: Int)
Link copied to clipboard
fun View.scrollView(@IdRes id: Int): ScrollView
Link copied to clipboard
fun View.search(@IdRes id: Int): SearchView
Link copied to clipboard
fun View.seekBar(@IdRes id: Int): SeekBar
Link copied to clipboard
fun View.selected(value: Boolean = true): View
Link copied to clipboard
fun View.selectedIf(value: Boolean): View
fun View.selectedIf(property: CSProperty<Boolean>): CSRegistration
inline fun <T> View.selectedIf(property: CSProperty<T>, crossinline condition: (T) -> Boolean): CSRegistration
inline fun <T> View.selectedIf(    property1: CSProperty<T>,     property2: CSProperty<*>,     crossinline condition: (T) -> Boolean): CSRegistration
fun <T, V> View.selectedIf(    property1: CSProperty<T>,     property2: CSProperty<V>,     condition: (T, V) -> Boolean): CSRegistration
fun <T, V, X> View.selectedIf(    property1: CSProperty<T>,     property2: CSProperty<V>,     property3: CSProperty<X>,     condition: (T, V, X) -> Boolean): CSRegistration
fun <T, V, X, Y> View.selectedIf(    property1: CSProperty<T>,     property2: CSProperty<V>,     property3: CSProperty<X>,     property4: CSProperty<Y>,     condition: (T, V, X, Y) -> Boolean): CSRegistration
Link copied to clipboard
fun View.selectIf(property: CSProperty<Boolean>): CSRegistration
fun <T> View.selectIf(property: CSProperty<T>, value: T): CSRegistration
Link copied to clipboard
fun <T : View> T.show(animated: Boolean = false): T
Link copied to clipboard
fun <T : View> T.shownIf(condition: Boolean, animated: Boolean = false): T
fun View.shownIf(property: CSProperty<Boolean>, animated: Boolean = false): CSRegistration
fun <T> View.shownIf(    property: CSProperty<T>,     animated: Boolean = false,     condition: (T) -> Boolean): CSRegistration
fun <T> View.shownIf(    property1: CSProperty<T>,     property2: CSProperty<*>,     animated: Boolean = false,     condition: (T) -> Boolean): CSRegistration
fun <T, V> View.shownIf(    property1: CSProperty<T>,     property2: CSProperty<V>,     animated: Boolean = false,     condition: (T, V) -> Boolean): CSRegistration
fun <T, V, X> View.shownIf(    property1: CSProperty<T>,     property2: CSProperty<V>,     property3: CSProperty<X>,     animated: Boolean = false,     condition: (T, V, X) -> Boolean): CSRegistration
Link copied to clipboard
fun View.shownIfNot(property: CSProperty<Boolean>, animated: Boolean = false): CSRegistration
Link copied to clipboard
fun <T : View> T.size(width: Int, height: Int): T
Link copied to clipboard
inline fun <R : Comparable<R>> ViewGroup.sortChildren(crossinline selector: (View) -> R?): ViewGroup
inline fun <R : Comparable<R>> ViewGroup.sortChildren(crossinline selector: (Int, View) -> R?): ViewGroup
Link copied to clipboard
fun View.spinner(@IdRes id: Int): Spinner
Link copied to clipboard
fun <T : View> T.startMargin(value: Int): T
Link copied to clipboard
fun View.switch(@IdRes id: Int): Switch
Link copied to clipboard
fun View.textView(@IdRes id: Int): TextView
Link copied to clipboard
fun View.timePicker(@IdRes id: Int): TimePicker
Link copied to clipboard
fun View.toggleActiveAsTrue(property: CSProperty<Boolean>): CSRegistration
Link copied to clipboard
fun View.toggleAsFalse(property: CSProperty<Boolean>): CSRegistration
Link copied to clipboard
fun View.toggleSelectedAsTrue(property: CSProperty<Boolean>): CSRegistration
Link copied to clipboard
fun View.toolbar(@IdRes id: Int): Toolbar
Link copied to clipboard
fun <T : View> T.topMargin(value: Int): T
Link copied to clipboard
fun <T : View> T.updateVisibility()
Link copied to clipboard
fun <T : View> T.verticalMargin(value: Int): T
Link copied to clipboard
fun View.view(@IdRes id: Int): View
Link copied to clipboard
fun View.viewGroup(@IdRes id: Int): ViewGroup
Link copied to clipboard
fun <T : View> T.visible(animated: Boolean = false): T
Link copied to clipboard
fun <T : View> T.visibleIf(condition: Boolean, animated: Boolean = false): T
fun View.visibleIf(property: CSProperty<Boolean>, animated: Boolean = false): CSRegistration
fun <T> View.visibleIf(    property: CSProperty<T>,     animated: Boolean = false,     condition: (T) -> Boolean): CSRegistration
fun <T> View.visibleIf(    property1: CSProperty<T>,     property2: CSProperty<*>,     animated: Boolean = false,     condition: (T) -> Boolean): CSRegistration
fun <T, V> View.visibleIf(    property1: CSProperty<T>,     property2: CSProperty<V>,     animated: Boolean = false,     condition: (T, V) -> Boolean): CSRegistration
Link copied to clipboard
fun View.visibleIfNot(property: CSProperty<Boolean>, animated: Boolean = false): CSRegistration
Link copied to clipboard
fun View.webView(@IdRes id: Int): WebView
Link copied to clipboard
fun <T : View> T.width(value: Int): T
Link copied to clipboard
fun <T : View> T.widthDp(value: Float): T
fun <T : View> T.widthDp(value: Int): T

Properties

Link copied to clipboard
val Context.disabledAlpha: Float
Link copied to clipboard
@get:RequiresApi(value = 23)
val View.eventScrollChange: CSEvent<View>
Link copied to clipboard
val View.firstChild: View?
val ViewGroup.firstChild: View?
Link copied to clipboard
var View.heightDp: Int
Link copied to clipboard
val <T : View> T.isGone: Boolean
Link copied to clipboard
val <T : View> T.isInvisible: Boolean
Link copied to clipboard
val <T : View> T.isVisible: Boolean
Link copied to clipboard
val View.lastChild: View?
val ViewGroup.lastChild: View?
Link copied to clipboard
val ViewGroup.lastIndex: Int
Link copied to clipboard
var View.layoutHeight: Int
Link copied to clipboard
var View.layoutWidth: Int
Link copied to clipboard
val View.locationInWindow: CSPoint<Int>
Link copied to clipboard
val View.locationOnScreen: CSPoint<Int>
Link copied to clipboard
val mediumAnimationDuration: Int
Link copied to clipboard
val <T : View> T.parentView: View?
Link copied to clipboard
val View.rectangle: Rect
Link copied to clipboard
val View.rectangleInWindow: Rect
Link copied to clipboard
val shortAnimationDuration: Int
Link copied to clipboard
val ViewGroup.subViews: List<View>
Link copied to clipboard
val <T : View> T.superview: View?
Link copied to clipboard
val <T : View> T.topFromBottom: Int
Link copied to clipboard
var View.widthDp: Int