Widget Documentation: LMFeedImageView
Widget: LMFeedImageView
The LMFeedImageView is a custom ImageView component that supports dynamic image loading, circular shapes, grayscale rendering, and corner radius adjustments.
| Method | Description |
|---|---|
| setImage(imageSrc: Any?, imageViewStyle: LMFeedImageStyle) | Sets the image source and applies the specified style. |
View Style: LMFeedImageStyle
The LMFeedImageStyle defines the appearance and layout properties for the LMFeedImageView, including options for circular images, grayscale rendering, and corner radius adjustments.
| Field | Description | Type |
|---|---|---|
| imageSrc | Specifies the source of the image. | Any |
| placeholderSrc | Defines the source for the placeholder image. | Any |
| isCircle | Indicates whether the image should be circular. | Boolean |
| showGreyScale | Determines whether the image is displayed in grayscale. | Boolean |
| cornerRadius | Specifies the corner radius for the image. | Int |
| imageTint | Sets the tint color for the image. | Int |
| alpha | Controls the transparency of the image. | Float |
| scaleType | Specifies how the image should be scaled to fit the view. | ScaleType |