Image with customizable notifier, with a badge or text applied.
In the aia project you can see how it works dynamically.
CreateBadge
Creates an Image with a badge or text applied. Supports custom size, radius and color.
Position options: TopRight
, TopLeft
, BottomRight
, BottomLeft
Note!
- Only images from assets can be used.
BadgeText
Dynamically changes the badge text.
You can use integers or strings.
BadgeTextColor
Dynamically changes the badge text color. Accepts both hex strings and integer colors.
BadgeBackgroundColor
Dynamically changes the badge background color. Accepts both hex strings and integer colors.
GetBadgeText
Returns the current text of the badge. Returns empty string if not found or not using text badge.
MakeBadgeClickable
Makes the badge clickable and triggers BadgeClicked or BadgeLongClicked when pressed.
BadgeClicked
Triggered when a badge is clicked. Returns the ID and badge text.
BadgeLongClicked
Triggered when a badge is long-clicked. Returns the ID and badge text.
v1.0 April 09, 2025.
Badges.aia (41.3 KB)
joejsanz.joedevbadges.aix (14.9 KB)
JDK: 11
Minimum API Level: 21
Updated On: 2025-04-09T07:00:00Z
Built using: FAST-CLI v2.8.3
Thanks.