Package renetik.android.ui.extensions.widget

Types

Link copied to clipboard
annotation class EdgeGravity

Functions

Link copied to clipboard
fun TextView.bottomDrawable(@DrawableRes drawable: Int?)
Link copied to clipboard
fun CompoundButton.buttonTint(@ColorInt value: Int?): CompoundButton
Link copied to clipboard
fun CompoundButton.checked(condition: Boolean = true): CompoundButton
Link copied to clipboard
fun NumberPicker.circulate(circulate: Boolean): NumberPicker
Link copied to clipboard
fun DrawerLayout.close()
Link copied to clipboard
fun DrawerLayout.closeLeft()
Link copied to clipboard
fun DrawerLayout.closeRight()
Link copied to clipboard
fun <Data> Spinner.data(    context: Context,     values: Collection<Data>,     selected: Data? = null)
fun <Data> Spinner.data(    context: Context,     itemLayout: Int,     dropDownItemLayout: Int,     values: Collection<Data>,     selected: Data? = null)
Link copied to clipboard
fun NumberPicker.disableTextEditing(disable: Boolean): NumberPicker
Link copied to clipboard
@RequiresApi(value = 23)
fun TextView.drawableTintAttr(@AttrRes value: Int): TextView
Link copied to clipboard
fun TextView.endDrawable(drawable: Drawable?)
fun TextView.endDrawable(@DrawableRes drawable: Int?)
Link copied to clipboard
fun <T : TextView> T.goneIfEmpty(): T
Link copied to clipboard
Link copied to clipboard
fun <T : ImageView> T.iconTint(@ColorInt color: Int): T
Link copied to clipboard
fun <T : ImageView> T.image(file: File): T
fun <T> ImageView.image(property: CSProperty<T>, valueToImage: (T) -> File): CSRegistration
Link copied to clipboard
fun CompoundButton.isCheckedIf(condition: Boolean): CompoundButton
fun CompoundButton.isCheckedIf(property: CSProperty<Boolean>): CSRegistration
fun <T, V> CompoundButton.isCheckedIf(property: CSProperty<T>, condition: (T) -> Boolean): CSRegistration
fun <T> CompoundButton.isCheckedIf(    property1: CSProperty<T>,     property2: CSProperty<*>,     condition: (T) -> Boolean): CSRegistration
fun <T, V> CompoundButton.isCheckedIf(    property1: CSProperty<T>,     property2: CSProperty<V>,     condition: (T, V) -> Boolean): CSRegistration
Link copied to clipboard
fun CompoundButton.isCheckedIfNot(condition: Boolean): CompoundButton
fun CompoundButton.isCheckedIfNot(property: CSProperty<Boolean>): CSRegistration
Link copied to clipboard
fun layoutMatchHeight(dpHeight: Int): FrameLayout.LayoutParams
fun layoutMatchHeight(dpHeight: Float, gravity: Int? = null): FrameLayout.LayoutParams
fun layoutMatchHeight(dpHeight: Int, gravity: Int? = null): FrameLayout.LayoutParams
Link copied to clipboard
fun layoutMatchHeightPx(pixelHeight: Int): FrameLayout.LayoutParams
Link copied to clipboard
fun layoutWidthHeight(dpWidth: Float, dpHeight: Float): FrameLayout.LayoutParams
fun layoutWidthHeight(dpWidth: Int, dpHeight: Int): FrameLayout.LayoutParams
Link copied to clipboard
fun layoutWidthMatch(dpWidth: Int): FrameLayout.LayoutParams
Link copied to clipboard
fun layoutWrap(gravity: Int): FrameLayout.LayoutParams
Link copied to clipboard
fun layoutWrapHeight(dpHeight: Float, gravity: Int? = null): FrameLayout.LayoutParams
fun layoutWrapHeight(dpHeight: Int, gravity: Int? = null): FrameLayout.LayoutParams
Link copied to clipboard
fun <Row : Any> NumberPicker.loadData(data: List<Row>, selected: Row? = null): NumberPicker
fun <Row : Any> NumberPicker.loadData(data: List<Row>, selectedIndex: Int = 0): NumberPicker
Link copied to clipboard
fun DrawerLayout.lockRight()
Link copied to clipboard
fun ViewGroup.MarginLayoutParams.margin(    left: Int = 0,     top: Int = 0,     right: Int = 0,     bottom: Int = 0): ViewGroup.MarginLayoutParams
Link copied to clipboard
fun NumberPicker.max(value: Int): NumberPicker
Link copied to clipboard
fun NumberPicker.min(value: Int): NumberPicker
Link copied to clipboard
fun CompoundButton.onChange(function: (CompoundButton) -> Unit): CSRegistration
fun RadioGroup.onChange(listener: (buttonId: Int) -> Unit): RadioGroup
fun SeekBar.onChange(function: (value: Int) -> Unit): SeekBar
Link copied to clipboard
fun <T : EditText> T.onClear(listener: (EditText) -> Unit): T
Link copied to clipboard
fun DrawerLayout.onDrawerOpening(function: (DrawerLayout) -> Unit)
Link copied to clipboard
fun DrawerLayout.onDrawerStateChanged(function: (newState: Int) -> Unit)
Link copied to clipboard
fun <T : TextView> T.onFocusChange(onChange: (view: T) -> Unit): T
Link copied to clipboard
fun DrawerLayout.onOpenStateChanged(function: (DrawerLayout) -> Unit)
Link copied to clipboard
fun <T : TextView> T.onTextChange(onChange: (view: T) -> Unit): T
Link copied to clipboard
fun NumberPicker.onValueChange(function: Func): NumberPicker
Link copied to clipboard
fun DrawerLayout.openLeft()
Link copied to clipboard
fun DrawerLayout.openRight()
Link copied to clipboard
fun RadioGroup.propertyTrueIfChecked(property: CSProperty<Boolean?>, viewId: Int): RadioGroup
Link copied to clipboard
fun View.radioGroup(@IdRes id: Int): RadioGroup
Link copied to clipboard
fun GridView.resizeToMatchContentHeight()
Link copied to clipboard
fun ScrollView.scrollTo(view: CSViewInterface, centered: Boolean = true)
Link copied to clipboard
fun ScrollView.scrollToChild(child: View, centered: Boolean = true)
Link copied to clipboard
fun AbsListView.scrollToIndex(index: Int, smooth: Boolean = true)
Link copied to clipboard
fun <T : Adapter> AdapterView<T>.scrollToTop()
Link copied to clipboard
@RequiresApi(value = 23)
fun TextView.setDrawableTint(@ColorInt colorInt: Int)
@RequiresApi(value = 23)
fun TextView.setDrawableTint(context: ContextWrapper, @ColorRes iconColor: Int)
Link copied to clipboard
fun CompoundButton.setOff(): CompoundButton
Link copied to clipboard
fun CompoundButton.setOn(): CompoundButton
Link copied to clipboard
fun HorizontalScrollView.setTouchEnabled(enabled: Boolean)
Link copied to clipboard
fun DrawerLayout.setupLeftPanelSliding(@IdRes viewId: Int, @IdRes contentId: Int)
Link copied to clipboard
fun DrawerLayout.setupRightPanelSliding(@IdRes viewId: Int, @IdRes contentId: Int)
Link copied to clipboard
fun <T : TextView> T.startDrawable(drawable: Drawable?): T
fun <T : TextView> T.startDrawable(@DrawableRes drawable: Int?): T
fun <T : CSHasDrawable> TextView.startDrawable(property: CSProperty<T>): CSRegistration
fun <T : TextView> T.startDrawable(property: CSProperty<Boolean>, function: (Boolean) -> Int): CSRegistration
fun <T> TextView.startDrawable(property: CSProperty<T>, getDrawable: (T) -> Int?): CSRegistration
Link copied to clipboard
fun <T : TextView> T.text(): String
fun <T : TextView> T.text(value: Any?): T
fun <T : TextView> T.text(string: CharSequence?): T
fun <T : TextView> T.text(value: CSValue<*>): T
fun TextView.text(property: CSProperty<*>): CSRegistration
@JvmName(name = "TextViewTextStringProperty")
fun TextView.text(property: CSProperty<String>): CSRegistration
fun <T> TextView.text(property: CSProperty<T>, getText: (T) -> Any): CSRegistration
fun <T, V> TextView.text(    parent: CSProperty<T>,     child: (T) -> CSProperty<V>,     getText: (V) -> Any): CSRegistration
fun <T, V> TextView.text(    property1: CSProperty<T>,     property2: CSProperty<V>,     getText: (T, V) -> Any): CSRegistration
Link copied to clipboard
fun <T : TextView> T.textAppend(string: CharSequence?): T
Link copied to clipboard
fun TextView.textColor(@ColorRes value: Int): TextView
fun TextView.textColor(value: CSColorInt): TextView
Link copied to clipboard
fun TextView.textColorAttr(@AttrRes attribute: Int): TextView
Link copied to clipboard
fun TextView.textColorInt(@ColorInt color: Int): TextView
Link copied to clipboard
fun <T, V> TextView.textNullableChild(    parent: CSProperty<T>,     child: (T) -> CSProperty<V>?,     getText: (V?) -> Any): CSRegistration
Link copied to clipboard
fun <T> TextView.textOfChild(parent: CSProperty<T>, child: (T) -> CSProperty<String>): CSRegistration
Link copied to clipboard
fun <T : TextView> T.textPrepend(string: CharSequence?): T
Link copied to clipboard
fun EditText.textProperty(property: CSProperty<String>): CSRegistration
Link copied to clipboard
fun DrawerLayout.toggleLeft()
Link copied to clipboard
fun DrawerLayout.toggleRight()
Link copied to clipboard
fun TextView.topDrawable(@DrawableRes drawable: Int?)
Link copied to clipboard
fun TextView.typeface(@FontRes font: Int): TextView
Link copied to clipboard
fun DrawerLayout.unlockRight()
Link copied to clipboard
@JvmName(name = "valuePropertyInt")
fun NumberPicker.value(property: CSProperty<Int>): CSRegistration
fun SeekBar.value(value: Int): SeekBar
fun <T> NumberPicker.value(property: CSProperty<T>, function: (T) -> Int): CSRegistration
Link copied to clipboard
Link copied to clipboard
fun <T : EditText> T.withClear(showOnFocus: Boolean = false): T
Link copied to clipboard
fun EditText.withKeyboardDone(function: () -> Unit): EditText

Properties

Link copied to clipboard
var RadioGroup.checkedId: Int?
Link copied to clipboard
val HorizontalScrollView.content: View
Link copied to clipboard
val DatePicker.date: Date
Link copied to clipboard
val <T : RadioGroup> T.eventChange: CSEvent<Int>
Link copied to clipboard
val EditText.eventClear: CSEvent<EditText>
Link copied to clipboard
val RadioGroup.isChecked: Boolean
Link copied to clipboard
val DrawerLayout.isDrawerOpen: Boolean
Link copied to clipboard
val layoutFillMatch: LinearLayout.LayoutParams
Link copied to clipboard
val layoutFillWrap: LinearLayout.LayoutParams
Link copied to clipboard
val layoutMatch: FrameLayout.LayoutParams
Link copied to clipboard
val layoutMatchCenter: FrameLayout.LayoutParams
Link copied to clipboard
val layoutMatchFill: LinearLayout.LayoutParams
Link copied to clipboard
val layoutMatchWrap: FrameLayout.LayoutParams
Link copied to clipboard
val layoutMatchWrapCenter: FrameLayout.LayoutParams
Link copied to clipboard
val layoutWrap: FrameLayout.LayoutParams
Link copied to clipboard
val layoutWrapCenter: FrameLayout.LayoutParams
Link copied to clipboard
val layoutWrapFill: LinearLayout.LayoutParams
Link copied to clipboard
val layoutWrapMatch: FrameLayout.LayoutParams
Link copied to clipboard
val layoutWrapMatchCenter: FrameLayout.LayoutParams
Link copied to clipboard
val AutoCompleteTextView.selectedIndex: Int?
Link copied to clipboard
val TimePicker.time: Date
Link copied to clipboard
var <T : TextView> T.title: String