Barcode Check Info Annotation Body Component
Defined in package com.scandit.datacapture.barcode.check.ui
- BarcodeCheckInfoAnnotationBodyComponent
class BarcodeCheckInfoAnnotationBodyComponent
Added in version 7.1.0
A component that forms the body of an info annotation. Each component represents a “row,” containing text with optional icons on the left and/or right sides.
- BarcodeCheckInfoAnnotationBodyComponent()
BarcodeCheckInfoAnnotationBodyComponent()
Added in version 7.1.0
Constructs a new instance of the body component.
- text
@Nullable String getText()
void
setText(@Nullable String value)Added in version 7.1.0
The text shown in the component.
- textSize
float
getTextSize()void
setTextSize(float
value)Added in version 7.1.0
The size of the text. Default is 14 scale-independent pixels.
- typeface
@NonNull Typeface getTypeface()
void
setTypeface(@NonNull Typeface value)Added in version 7.1.0
The typeface of the text. Default is Typeface.DEFAULT.
- textAlignment
int
getTextAlignment()void
setTextAlignment(int
value)Added in version 7.1.0
The text alignment. The default value is center.
See TextView for details.
- textColor
int
getTextColor()void
setTextColor(int
value)Added in version 7.1.0
The color of the text. The default value is #121619.
- styledText
@Nullable CharSequence getStyledText()
void
setStyledText(@Nullable CharSequence value)Added in version 7.1.0
The styled text shown in the component. When set, it overrides the values defined in the other text-related properties (text, typeface, textColor, textSize, textAlignment).
- isLeftIconTappable
boolean
isLeftIconTappable()void
setLeftIconTappable(boolean
value)Added in version 7.1.0
Whether the left icon is tappable. Default is true.
- leftIcon
@Nullable ScanditIcon getLeftIcon()
void
setLeftIcon(@Nullable ScanditIcon value)Added in version 7.1.0
The icon displayed on the left side of the component. If null, no button is shown. The default value is null.
- rightIcon
@Nullable ScanditIcon getRightIcon()
void
setRightIcon(@Nullable ScanditIcon value)Added in version 7.1.0
The icon displayed on the right side of the component. If null, no button is shown. The default value is null.
- isRightIconTappable
boolean
isRightIconTappable()void
setRightIconTappable(boolean
value)Added in version 7.1.0
Whether the right icon is tappable. Default is true.