Package-level declarations

TextView, EditText, ImageView, picker and scroll-view extensions, plus LinearLayout factories (VerticalLayout, HorizontalLayout).

Types

Link copied to clipboard
annotation class EdgeGravity
Link copied to clipboard
class StringArrayAdapterFilter(val adapter: ArrayAdapter<String>, val strings: List<String>, val performFilter: (List<String>, CharSequence?) -> List<String>) : Filter

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun <T : TextView> T.autoLinkAll(): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@JvmName(name = "checkedIfChildNullable")
inline fun <T> CompoundButton.checkIf(parent: CSHasChangeValue<T>, crossinline childNullable: (T) -> CSProperty<Boolean>?): CSRegistration
inline fun <T> CompoundButton.checkIf(parent: CSHasChangeValue<T>, crossinline child: (T) -> CSProperty<Boolean>): CSRegistration
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : TextView> T.clearText(): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
fun <T : ImageView> T.drawable(drawable: Drawable?): T
fun <T : TextView> T.drawable(start: Drawable? = null, top: Drawable? = null, end: Drawable? = null, bottom: Drawable? = null): T
fun <T : TextView> T.drawable(@DrawableRes start: Int? = null, @DrawableRes top: Int? = null, @DrawableRes end: Int? = null, @DrawableRes bottom: Int? = null): T
Link copied to clipboard
Link copied to clipboard
fun <T : TextView> T.drawableStart(@DrawableRes start: Int?): T
inline fun <T> TextView.drawableStart(property: CSHasChangeValue<T>, crossinline getDrawable: (T) -> Int?): CSRegistration
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : TextView> T.goneIfBlank(): T
Link copied to clipboard
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(bitmap: Bitmap?): T
fun <T : ImageView> T.image(uri: Uri?): T
fun <T : ImageView> T.image(file: File): T
fun <T : ImageView> T.image(@DrawableRes resourceId: Int?): T
@JvmName(name = "imagePropertyBitmap")
fun <T> ImageView.image(property: CSHasChangeValue<T>, bitmap: (T) -> Bitmap?): CSRegistration
@JvmName(name = "imagePropertyFile")
fun <T> ImageView.image(property: CSHasChangeValue<T>, file: (T) -> File): CSRegistration
@JvmName(name = "imagePropertyResource")
fun <T> ImageView.image(property: CSHasChangeValue<T>, resource: (T) -> Int?): CSRegistration
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun layoutWrapHeight(height: Int, gravity: Int? = null): FrameLayout.LayoutParams
Link copied to clipboard
fun <T : TextView> T.lines(max: Int): T
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : EditText> T.multiline(): T
Link copied to clipboard
fun RadioGroup.onChange(listener: (buttonId: Int) -> Unit): RadioGroup
fun SeekBar.onChange(function: (value: Int) -> Unit): SeekBar
Link copied to clipboard
Link copied to clipboard
fun DrawerLayout.onDrawerStateChanged(function: (newState: Int) -> Unit)
Link copied to clipboard
Link copied to clipboard
inline fun View.onFocusChange(crossinline onChange: (hasFocus: Boolean) -> Unit): CSRegistration
Link copied to clipboard
inline fun View.onFocusGained(crossinline onFocusGained: () -> Unit): CSRegistration
Link copied to clipboard
inline fun View.onFocusLost(crossinline onFocusLost: () -> Unit): CSRegistration
Link copied to clipboard
Link copied to clipboard
inline fun <T : TextView> T.onTextChange(crossinline onChange: (view: T) -> Unit): CSRegistration
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun DrawerLayout.openLeft(animate: Boolean = true)
Link copied to clipboard
fun DrawerLayout.openRight(animate: Boolean = true)
Link copied to clipboard
@JvmName(name = "propertyNullable")
fun EditText.property(property: CSProperty<String?>): CSRegistration
fun TextView.property(property: CSProperty<String>, toString: (String) -> String): CSRegistration
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ScrollView.scrollTo(item: CSViewInterface, centered: Boolean = true, smooth: Boolean = false)
Link copied to clipboard
fun ScrollView.scrollToChild(child: View, centered: Boolean = true, smooth: Boolean = false)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : AutoCompleteTextView> T.setDropDown(strings: List<String>, filter: (List<String>, CharSequence?) -> List<String>?, selectedIndex: Int? = null, isAutoClear: Boolean = true, onSelection: (position: Int?) -> Unit? = null): CSRegistration
fun <T : AutoCompleteTextView> T.setDropDown(strings: List<String>, selectedIndex: Int? = null, disableEdit: Boolean = true, isAutoClear: Boolean = true, onSelection: (position: Int?) -> Unit? = null): CSRegistration
fun AutoCompleteTextView.setDropDown(stringArray: Int, selectedIndex: Int? = null, disableEdit: Boolean = true, isAutoClear: Boolean = true, onItemSelected: (position: Int?) -> Unit? = null): CSRegistration
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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.text(): String
fun <T : TextView> T.text(string: CharSequence?): T
fun <T : TextView> T.text(@StringRes stringId: Int): T
fun <T : TextView> T.text(value: CSValue<*>): T
@JvmName(name = "TextViewTextStringProperty")
fun TextView.text(property: CSHasChangeValue<String>): CSRegistration
inline fun <T> TextView.text(property: CSHasChangeValue<T>, crossinline text: (T) -> Any): CSRegistration
@JvmName(name = "textPropertyChildTextProperty")
inline fun <T> TextView.text(parent: CSHasChangeValue<T>, crossinline child: (T) -> CSHasChangeValue<String>): CSRegistration
inline fun <T, V> TextView.text(parent: CSHasChangeValue<T>, crossinline child: (T) -> CSHasChangeValue<V>, noinline text: (V) -> Any): CSRegistration
inline fun <T, V> TextView.text(property1: CSHasChangeValue<T>, property2: CSHasChangeValue<V>, crossinline text: (T, V) -> Any): CSRegistration
inline fun <T, V, K> TextView.text(property1: CSHasChangeValue<T>, property2: CSHasChangeValue<V>, property3: CSHasChangeValue<K>, crossinline text: (T, V, K) -> Any): CSRegistration
Link copied to clipboard
fun <T : TextView> T.textAppend(value: CharSequence?): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T, V> TextView.textNullableChild(parent: CSHasChangeValue<T>, crossinline child: (T) -> CSHasChangeValue<V>?, noinline text: (V?) -> Any): CSRegistration
Link copied to clipboard
fun <T : TextView> T.textPrepend(value: CharSequence?): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun DrawerLayout.toggleRight(animate: Boolean = true)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : TextView> T.value(value: Any?): T
@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
Link copied to clipboard
fun <T : TextView> T.withClear(onClear: ArgFun<T>? = null): T
Link copied to clipboard
fun EditText.withKeyboardDone(function: () -> Unit): EditText