Dewey Avatar
A custom view for displaying an avatar image with a state badge.
The avatar image can be set using setImageBitmap, setImageResource, or setImageDrawable. Before showing the image, the avatar will display a placeholder image based on the Placeholder.Type set using setImagePlaceholder. The avatar can also display a state badge using setStateBadge.
The size of the avatar is limited to a set of predefined Sizes, which can be set using setSize. Therefore, WRAP_CONTENT should be used for the height and width of the view.
Types
Functions
Get the image view of the avatar. For customization purposes.
Set the image of the avatar using a bitmap.
Set the image of the avatar using a drawable.
Set the placeholder image to display before the avatar image is set.
Set the image of the avatar using a resource ID.
Set the state badge to display at the bottom right of the avatar.
Set the UI mode of the avatar view. Can be used to force the UI mode to light or dark.