Widget Documentation: LMFeedTextView
Widget: LMFeedTextView
The LMFeedTextView
is a versatile text component with advanced customization options such as font resources, drawables, and expandable call-to-actions.
Method | Description |
---|---|
clearDrawables() | Removes all drawable resources attached to the TextView . |
View Style: LMFeedTextStyle
The LMFeedTextStyle
defines the appearance and layout properties for the LMFeedTextView
, allowing customization for text styling, drawables, and alignment.
Field | Description | Type |
---|---|---|
textColor | Specifies the color of the text. | Int |
textSize | Defines the size of the text. | Int |
textAllCaps | Indicates whether the text should be displayed in all caps. | Boolean |
fontResource | Specifies the font resource for the text. | Int |
fontAssetsPath | Path to the font file in assets. | String |
typeface | Sets the typeface of the text. | Int |
maxLines | Specifies the maximum number of lines for the text. | Int |
ellipsize | Determines how to truncate text that exceeds available space. | TruncateAt |
maxHeight | Sets the maximum height of the TextView . | Int |
minHeight | Sets the minimum height of the TextView . | Int |
backgroundColor | Specifies the background color of the TextView . | Int |
textAlignment | Defines the alignment of the text. | Int |
elevation | Sets the elevation of the TextView . | Int |
hintTextColor | Specifies the color of the hint text. | Int |
drawableLeftSrc | Resource ID for the left drawable. | Int |
drawableTopSrc | Resource ID for the top drawable. | Int |
drawableRightSrc | Resource ID for the right drawable. | Int |
drawableBottomSrc | Resource ID for the bottom drawable. | Int |
drawablePadding | Padding between text and drawables. | Int |
expandableCTAText | Text for the "expandable" call-to-action. | String |
expandableCTAColor | Color of the "expandable" call-to-action text. | Int |