Public Sub Initialize
Prepare the instance before its other methods.
ELEVATEUI · B4A · XUI
Display compact counters, labels, or status next to an existing control.
Effects & interface utilities
Display compact counters, labels, or status next to an existing control.
Animated conceptual demonstration, not an exact Android control screenshot.
Show unread notification counts beside a bell, inbox or pending orders; update the count after a user action.
Before integrating, examine its methods, events and Designer options.
Tutorials are based on existing project examples or audited APIs. Check each example’s prerequisites; B4A compilation is not claimed.
The public API, events and properties remain available. An isolated initialization is not presented as a full example; a tutorial will be added after a functional sequence is documented.
35 audited signatures
Public Sub Initialize
Prepare the instance before its other methods.
Public Sub SetRootParent(IconContainer As B4XView, RootParent As B4XView)
Use SetRootParent for its named operation; follow its exact signature.
Original catalog note: IconContainer: the view that contains the icons (e.g. menu.Panel) RootParent: the root view that will host the badges (e.g. Activity) Example: badgeManager.SetRootParent(menu.Panel, Activity)
Public Sub RefreshRootOffset(IconContainer As B4XView)
Use RefreshRootOffset for its named operation; follow its exact signature.
Original catalog note: Call this if the menu or root view moves/resizes to refresh the offset.
Public Sub ClearRootParent
Use ClearRootParent for its named operation; follow its exact signature.
Original catalog note: Disables root parent mode (badges go back to their normal container).
Public Sub setBackgroundColor(Color As Int)
Update background color at runtime when this setting changes.
Original catalog note: ============ SET/GET METHODS FOR COLORS AND CONFIGURATION ============
Public Sub getBackgroundColor As Int
Read the current background color value for validation or UI synchronization.
Returns: Int
Public Sub setTextColor(Color As Int)
Update text color at runtime when this setting changes.
Public Sub getTextColor As Int
Read the current text color value for validation or UI synchronization.
Returns: Int
Public Sub setBorderColor(Color As Int)
Update border color at runtime when this setting changes.
Public Sub getBorderColor As Int
Read the current border color value for validation or UI synchronization.
Returns: Int
Public Sub setBorderWidth(Width As Int)
Update border width at runtime when this setting changes.
Public Sub getBorderWidth As Int
Read the current border width value for validation or UI synchronization.
Returns: Int
Public Sub setSize(Size As String)
Update size at runtime when this setting changes.
Original catalog note: Size: "xs", "sm", "md", "lg", "xl", or "2xl".
Public Sub getSize As String
Read the current size value for validation or UI synchronization.
Returns: String
Public Sub setCapValue(Cap As Int)
Update cap value at runtime when this setting changes.
Public Sub getCapValue As Int
Read the current cap value value for validation or UI synchronization.
Returns: Int
Public Sub setAnimationDuration(Duration As Int)
Update animation duration at runtime when this setting changes.
Public Sub getAnimationDuration As Int
Read the current animation duration value for validation or UI synchronization.
Returns: Int
Public Sub setCornerRadius(Radius As Int)
Update corner radius at runtime when this setting changes.
Original catalog note: Corner radius control
Public Sub getCornerRadius As Int
Read the current corner radius value for validation or UI synchronization.
Returns: Int
Public Sub setAutoDisableClipping(Enabled As Boolean)
Update auto disable clipping at runtime when this setting changes.
Original catalog note: Control de clipping automático
Public Sub getAutoDisableClipping As Boolean
Read the current auto disable clipping value for validation or UI synchronization.
Returns: Boolean
Public Sub setOffset(OffsetX As Int, OffsetY As Int)
Update offset at runtime when this setting changes.
Original catalog note: Offset to pull the badge closer/farther from its host icon. offsetX/offsetY: positive = closer to center of icon (inward shift). Default is 6dip for both.
Public Sub getOffsetX As Int
Read the current offset x value for validation or UI synchronization.
Returns: Int
Public Sub getOffsetY As Int
Read the current offset y value for validation or UI synchronization.
Returns: Int
Public Sub SetBadge(TargetView As B4XView, Value As String, Gravity1 As String)
Use SetBadge for its named operation; follow its exact signature.
Original catalog note: ============ MAIN BADGE METHODS ============ Sets or updates a badge on any view resource indicating its position (Gravity)
Public Sub RemoveBadge(TargetView As B4XView)
Use RemoveBadge for its named operation; follow its exact signature.
Public Sub GetBadge(TargetView As B4XView) As String
Use GetBadge for its named operation; follow its exact signature.
Returns: String
Public Sub GetBadgeGravity(TargetView As B4XView) As String
Use GetBadgeGravity for its named operation; follow its exact signature.
Returns: String
Public Sub UpdateValue(TargetView As B4XView, NewValue As String)
Use UpdateValue for its named operation; follow its exact signature.
Original catalog note: Allows updating only the value without changing the position
Public Sub UpdateGravity(TargetView As B4XView, NewGravity As String)
Use UpdateGravity for its named operation; follow its exact signature.
Original catalog note: Allows updating only the position without changing the value
Public Sub RefreshAllBadges()
Use RefreshAllBadges for its named operation; follow its exact signature.
Original catalog note: Method to refresh all badges (useful after size changes)
Public Sub RemoveAllBadges()
Use RemoveAllBadges for its named operation; follow its exact signature.
Original catalog note: Removes all badges
Public Sub HasBadge(TargetView As B4XView) As Boolean
Use HasBadge for its named operation; follow its exact signature.
Original catalog note: Checks if a badge exists
Returns: Boolean
Public Sub GetBadgePanel(TargetView As B4XView) As B4XView
Use GetBadgePanel for its named operation; follow its exact signature.
Original catalog note: Gets the badge panel (for advanced manipulation)
Returns: B4XView
No custom Designer properties were found in the audited API.
No public callback events are declared in the catalog. You can still handle B4A events for controls inserted inside it.
Public Const GRAVITY_TOP_RIGHT As String = "TOP_RIGHT"Public Const GRAVITY_TOP_LEFT As String = "TOP_LEFT"Public Const GRAVITY_BOTTOM_RIGHT As String = "BOTTOM_RIGHT"Public Const GRAVITY_BOTTOM_LEFT As String = "BOTTOM_LEFT"Public Const GRAVITY_CENTER_TOP As String = "CENTER_TOP"Public Const GRAVITY_CENTER_BOTTOM As String = "CENTER_BOTTOM"Public Const GRAVITY_CENTER As String = "CENTER"