CancelView

class CancelView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) : FrameLayout

Container view that handles usage of arrow icon button and text button for cancel event in toolbars

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null)

Properties

Link copied to clipboard
val binding: <Error class: unknown class>
Link copied to clipboard

Functions

Link copied to clipboard
open override fun hasOnClickListeners(): Boolean
Link copied to clipboard
fun setColorFilter(iconButtonState: ColorStateList, textButtonColor: Int)
fun setColorFilter(iconButtonColor: Int, textButtonColor: Int)

Set colors of the cancel text button and the icon button

Link copied to clipboard

Set the icon button image and hide text button

Link copied to clipboard
open override fun setOnClickListener(clickListener: View.OnClickListener?)
Link copied to clipboard
fun setText(text: String)

Set the text button text value and hide icon button