ui / com.schibsted.account.ui.ui.component / CheckBoxView

CheckBoxView

class CheckBoxView : SchibstedView

Defines a custom checkbox error resources and attach a text to this checkbox If you have a android.text.style.ClickableSpan inside your text you should use this class rather than CheckBox in order to avoid to give a focus to the android.text.style.ClickableSpan when clicking on the CheckBox

Constructors

<init>

CheckBoxView(context: Context, attrs: AttributeSet? = null)

Defines a custom checkbox error resources and attach a text to this checkbox If you have a android.text.style.ClickableSpan inside your text you should use this class rather than CheckBox in order to avoid to give a focus to the android.text.style.ClickableSpan when clicking on the CheckBox

Properties

isChecked

var isChecked: Boolean

Inherited Properties

errorView

var errorView: TextView?

The error view used to display the error message

isErrorVisible

open var isErrorVisible: Boolean

Checks if an error view is currently displayed

labelView

lateinit var labelView: TextView

View used to display the label attached to the view

Functions

hideErrorView

fun hideErrorView(): Unit

Sets .errorView visibility to GONE Changes the button drawable of .checkbox to display the normal behavior

showErrorView

fun showErrorView(): Unit

Sets .errorView visibility to VISIBLE Changes the button drawable of .checkbox to display the error behavior

Inherited Functions

setError

open fun setError(message: Int): Unit
open fun setError(message: String): Unit

setTitle

fun setTitle(label: Int): Unit
fun setTitle(title: String): Unit

setTitleVisible

fun setTitleVisible(labelVisible: Boolean): Unit