Package io.scanbot.sdk.ui.view.widget
Class CancelView
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback,android.view.KeyEvent.Callback,android.view.ViewManager,android.view.ViewParent,android.view.accessibility.AccessibilityEventSource
public final class CancelView extends FrameLayout
Container view that handles usage of arrow icon button and text button for cancel event in toolbars
-
-
Constructor Summary
Constructors Constructor Description CancelView(Context context, AttributeSet attrs)CancelView(Context context)
-
Method Summary
Modifier and Type Method Description final <Error class: unknown class>getBinding()final BooleanisAllCaps()final UnitsetAllCaps(Boolean isAllCaps)UnitsetOnClickListener(View.OnClickListener clickListener)BooleanhasOnClickListeners()final UnitsetText(String text)Set the text button textvalue and hide icon buttonfinal UnitsetImageDrawableResource(Integer res)Set the icon button image and hide text button final UnitsetColorFilter(ColorStateList iconButtonState, Integer textButtonColor)Set colors of the cancel text button and the icon button final UnitsetColorFilter(Integer iconButtonColor, Integer textButtonColor)Set colors of the cancel text button and the icon button -
-
Constructor Detail
-
CancelView
CancelView(Context context, AttributeSet attrs)
-
CancelView
CancelView(Context context)
-
-
Method Detail
-
getBinding
final <Error class: unknown class> getBinding()
-
setAllCaps
final Unit setAllCaps(Boolean isAllCaps)
-
setOnClickListener
Unit setOnClickListener(View.OnClickListener clickListener)
-
hasOnClickListeners
Boolean hasOnClickListeners()
-
setImageDrawableResource
final Unit setImageDrawableResource(Integer res)
Set the icon button image and hide text button
-
setColorFilter
final Unit setColorFilter(ColorStateList iconButtonState, Integer textButtonColor)
Set colors of the cancel text button and the icon button
-
setColorFilter
final Unit setColorFilter(Integer iconButtonColor, Integer textButtonColor)
Set colors of the cancel text button and the icon button
-
-
-
-