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 Boolean
isAllCaps()
final Unit
setAllCaps(Boolean isAllCaps)
Unit
setOnClickListener(View.OnClickListener clickListener)
Boolean
hasOnClickListeners()
final Unit
setText(String text)
Set the text button text
value and hide icon buttonfinal Unit
setImageDrawableResource(Integer res)
Set the icon button image and hide text button final Unit
setColorFilter(ColorStateList iconButtonState, Integer textButtonColor)
Set colors of the cancel text button and the icon button final Unit
setColorFilter(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
-
-
-
-