B4X Store

ELEVATEUI · B4A · XUI

UITagGroup

Offer multiple selectable tags or chips for filtering and classification.

78 modules 1,780 APIs

Effects & interface utilities

What it solves

Offer multiple selectable tags or chips for filtering and classification.

Animated conceptual demonstration, not an exact Android control screenshot.

52 methods20 Designer3 events

When to use this module

Use the effect after a meaningful interaction and ensure it does not replace an accessible state or confirmation.

Before integrating, examine its methods, events and Designer options.

B4A integration examples

Tutorials are based on existing project examples or audited APIs. Check each example’s prerequisites; B4A compilation is not claimed.

Practical tutorial awaiting verification

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.

Public methods reference

52 audited signatures

Public Sub Initialize (Callback As Object, EventName As String)

Prepare the instance before its other methods.

Callback As ObjectEventName As String
Public Sub DesignerCreateView (Base As Object, Lbl As Label, Props As Map)

Invoked automatically by the B4A Visual Designer; do not call manually.

Base As ObjectLbl As LabelProps As Map
Public Sub AddToParent(Parent As B4XView, Left As Int, Top As Int, Width As Int, height As Int)

Add this view to a parent container using the supplied bounds and options.

Parent As B4XViewLeft As IntTop As IntWidth As Intheight As Int
Public Sub setItems(Items As Object)

Update items at runtime when this setting changes.

Items As Object
Public Sub AddBadgeItem(Id As String, Text As String)

Use AddBadgeItem for its named operation; follow its exact signature.

Id As StringText As String
Public Sub AddItem(Id As String, Text As String, Tag As Object, Checked As Boolean, _

Use AddItem for its named operation; follow its exact signature.

Public Sub AddItemSimple(Id As String, Text As String, Tag As Object, Checked As Boolean)

Use AddItemSimple for its named operation; follow its exact signature.

Id As StringText As StringTag As ObjectChecked As Boolean
Public Sub ClearBadgeItems

Use ClearBadgeItems for its named operation; follow its exact signature.

Public Sub SetItemCornerRadius(Id As String, Radius As Int)

Use SetItemCornerRadius for its named operation; follow its exact signature.

Id As StringRadius As Int
Public Sub GetSelectedIds As List

Use GetSelectedIds for its named operation; follow its exact signature.

Original catalog note: ======================================================================= API PÚBLICA - SELECCIÓN =======================================================================

Returns: List

Public Sub GetSelectedItems As List

Use GetSelectedItems for its named operation; follow its exact signature.

Returns: List

Public Sub GetSelectedTexts As List

Use GetSelectedTexts for its named operation; follow its exact signature.

Returns: List

Public Sub SetItemChecked(Id As String, Checked As Boolean)

Use SetItemChecked for its named operation; follow its exact signature.

Id As StringChecked As Boolean
Public Sub ClearSelection

Use ClearSelection for its named operation; follow its exact signature.

Public Sub SetHeight(Height As Int)

Use SetHeight for its named operation; follow its exact signature.

Original catalog note: ======================================================================= PROPIEDADES PÚBLICAS - CONTROL DE ALTURA =======================================================================

Height As Int
Public Sub GetHeight As Int

Use GetHeight for its named operation; follow its exact signature.

Returns: Int

Public Sub SetAutoHeight(Auto As Boolean)

Use SetAutoHeight for its named operation; follow its exact signature.

Auto As Boolean
Public Sub IsAutoHeight As Boolean

Use IsAutoHeight for its named operation; follow its exact signature.

Returns: Boolean

Public Sub setLegend(Text As String)

Update legend at runtime when this setting changes.

Original catalog note: ======================================================================= PROPIEDADES PÚBLICAS - ESTILOS =======================================================================

Text As String
Public Sub setVariant(Value As String)

Update variant at runtime when this setting changes.

Value As String
Public Sub setBorderStyle(Value As String)

Update border style at runtime when this setting changes.

Value As String
Public Sub setSelectionMode(Mode As String)

Update selection mode at runtime when this setting changes.

Mode As String
Public Sub setBadgeHeight(Height As Int)

Update badge height at runtime when this setting changes.

Height As Int
Public Sub setFontSize(Size As Int)

Update font size at runtime when this setting changes.

Size As Int
Public Sub setPadding(Padding As Int)

Update padding at runtime when this setting changes.

Padding As Int
Public Sub setBackgroundColor(Color As Int)

Update background color at runtime when this setting changes.

Color As Int
Public Sub setBorderColor(Color As Int)

Update border color at runtime when this setting changes.

Color As Int
Public Sub setBorderSize(Size As Int)

Update border size at runtime when this setting changes.

Size As Int
Public Sub setRounded(Radius As Int)

Update rounded at runtime when this setting changes.

Radius As Int
Public Sub setShadow(Shadow As Float)

Update shadow at runtime when this setting changes.

Shadow As Float
Public Sub setBadgeShadow(Shadow As Float)

Update badge shadow at runtime when this setting changes.

Shadow As Float
Public Sub getLegend As String

Read the current legend value for validation or UI synchronization.

Original catalog note: ======================================================================= PROPIEDADES PÚBLICAS - GETTERS =======================================================================

Returns: String

Public Sub getVariant As String

Read the current variant value for validation or UI synchronization.

Returns: String

Public Sub getSelectionMode As String

Read the current selection mode value for validation or UI synchronization.

Returns: String

Public Sub getShadow As Float

Read the current shadow value for validation or UI synchronization.

Returns: Float

Public Sub getBadgeShadow As Float

Read the current badge shadow value for validation or UI synchronization.

Returns: Float

Public Sub getRounded As Int

Read the current rounded value for validation or UI synchronization.

Returns: Int

Public Sub setItemIcon(Id As String, IconChar As String, IconFont As B4XFont, IconColor As Int)

Update item icon at runtime when this setting changes.

Original catalog note: ======================================================================= API PÚBLICA - ICONOS POR ID =======================================================================

Id As StringIconChar As StringIconFont As B4XFontIconColor As Int
Public Sub setItemIconChar(Id As String, IconChar As String)

Update item icon char at runtime when this setting changes.

Id As StringIconChar As String
Public Sub setItemIconColor(Id As String, IconColor As Int)

Update item icon color at runtime when this setting changes.

Id As StringIconColor As Int
Public Sub setItemIconFont(Id As String, IconFont As B4XFont)

Update item icon font at runtime when this setting changes.

Id As StringIconFont As B4XFont
Public Sub setItemIconSize(Id As String, IconSize As Int)

Update item icon size at runtime when this setting changes.

Id As StringIconSize As Int
Public Sub getItemIcon(Id As String) As String

Read the current item icon value for validation or UI synchronization.

Id As String

Returns: String

Public Sub getItemIconInfo(Id As String) As Map

Read the current item icon info value for validation or UI synchronization.

Id As String

Returns: Map

Public Sub RemoveItemIcon(Id As String)

Use RemoveItemIcon for its named operation; follow its exact signature.

Id As String
Public Sub setBadgeFont(Font As B4XFont)

Update badge font at runtime when this setting changes.

Original catalog note: ======================================================================= PROPIEDADES PÚBLICAS - FUENTES =======================================================================

Font As B4XFont
Public Sub setBadgeFontSize(Size As Int)

Update badge font size at runtime when this setting changes.

Size As Int
Public Sub getBadgeFont As B4XFont

Read the current badge font value for validation or UI synchronization.

Returns: B4XFont

Public Sub RefreshFieldset

Use RefreshFieldset for its named operation; follow its exact signature.

Original catalog note: ======================================================================= API PÚBLICA - INFORMACIÓN =======================================================================

Public Sub IsItemChecked(Id As String) As Boolean

Use IsItemChecked for its named operation; follow its exact signature.

Id As String

Returns: Boolean

Public Sub getAllItems As List

Read the current all items value for validation or UI synchronization.

Returns: List

Public Sub getItemById(Id As String) As TItem

Read the current item by id value for validation or UI synchronization.

Id As String

Returns: TItem

Designer · 20

#DesignerProperty: Key: Legend, DisplayName: Legend, FieldType: String, DefaultValue:#DesignerProperty: Key: LegendSize, DisplayName: Legend Size, FieldType: Int, DefaultValue: 14#DesignerProperty: Key: Variant, DisplayName: Variant, FieldType: String, DefaultValue: neutral, List: none|neutral|primary|secondary|accent|info|success|warning|error#DesignerProperty: Key: BorderStyle, DisplayName: Border Style, FieldType: String, DefaultValue: outlined, List: outlined|ghost|inset#DesignerProperty: Key: Padding, DisplayName: Padding, FieldType: Int, DefaultValue: 16#DesignerProperty: Key: AutoHeight, DisplayName: Auto Height, FieldType: Boolean, DefaultValue: False#DesignerProperty: Key: Rounded, DisplayName: Rounded (dips), FieldType: String, DefaultValue: 8#DesignerProperty: Key: Shadow, DisplayName: Shadow (dips), FieldType: String, DefaultValue: 0#DesignerProperty: Key: BackgroundColor, DisplayName: Background Color, FieldType: Color, DefaultValue: 0x00FFFFFF#DesignerProperty: Key: BorderColor, DisplayName: Border Color, FieldType: Color, DefaultValue: 0x00000000#DesignerProperty: Key: BorderSize, DisplayName: Border Size, FieldType: Int, DefaultValue: 1#DesignerProperty: Key: SelectionMode, DisplayName: Selection Mode, FieldType: String, DefaultValue: multi, List: single|multi#DesignerProperty: Key: BadgeHeight, DisplayName: Badge Height, FieldType: Int, DefaultValue: 32#DesignerProperty: Key: BadgeColor, DisplayName: Badge Color, FieldType: String, DefaultValue: neutral, List: none|neutral|primary|secondary|accent|info|success|warning|error#DesignerProperty: Key: BadgeCheckedColor, DisplayName: Badge Checked Color, FieldType: Color, DefaultValue: 0x00000000#DesignerProperty: Key: BadgeCheckedTextColor, DisplayName: Badge Checked Text Color, FieldType: Color, DefaultValue: 0xFFFFFFFF#DesignerProperty: Key: FontSize, DisplayName: Font Size, FieldType: Int, DefaultValue: 14#DesignerProperty: Key: Gap, DisplayName: Gap, FieldType: Int, DefaultValue: 8#DesignerProperty: Key: RowGap, DisplayName: Row Gap, FieldType: Int, DefaultValue: 8#DesignerProperty: Key: Items, DisplayName: Items, FieldType: String, DefaultValue:

Public events and how to implement them · 3

Initialize with Me and the event prefix Demo, then add the following handler to your B4A module. Names and arguments come from the library declaration.

SelectionChanged (SelectedItems As List)

Raised when a selection or value changes; use it to update dependent data.

B4A handler signature with Demo prefix

Private Sub Demo_SelectionChanged(SelectedItems As List)
    Log("SelectionChanged")
End Sub
ItemChanged (Item As TItem, Checked As Boolean)

Raised when a selection or value changes; use it to update dependent data.

B4A handler signature with Demo prefix

Private Sub Demo_ItemChanged(Item As TItem, Checked As Boolean)
    Log("ItemChanged")
End Sub
ItemClick (Item As TItem)

Raised when the user taps the control; use it to trigger a real action.

B4A handler signature with Demo prefix

Private Sub Demo_ItemClick(Item As TItem)
    Log("ItemClick")
End Sub

For code-created controls use Initialize(Me, "Demo") when that signature exists; for Designer controls set the event name there. Replace Demo with the actual prefix.

Public fields, constants and types

Public mBase As B4XViewPublic Const VARIANT_NONE As String = "none"Public Const VARIANT_NEUTRAL As String = "neutral"Public Const VARIANT_PRIMARY As String = "primary"Public Const VARIANT_SECONDARY As String = "secondary"Public Const VARIANT_ACCENT As String = "accent"Public Const VARIANT_INFO As String = "info"Public Const VARIANT_SUCCESS As String = "success"Public Const VARIANT_WARNING As String = "warning"Public Const VARIANT_ERROR As String = "error"Public Const SELECTION_SINGLE As String = "single"Public Const SELECTION_MULTI As String = "multi"Public Const BORDER_OUTLINED As String = "outlined"Public Const BORDER_GHOST As String = "ghost"Public Const BORDER_INSET As String = "inset"Public Const TAG_COLOR_NONE As String = "none"Public Const TAG_COLOR_NEUTRAL As String = "neutral"Public Const TAG_COLOR_PRIMARY As String = "primary"Public Const TAG_COLOR_SECONDARY As String = "secondary"Public Const TAG_COLOR_ACCENT As String = "accent"Public Const TAG_COLOR_INFO As String = "info"Public Const TAG_COLOR_SUCCESS As String = "success"Public Const TAG_COLOR_WARNING As String = "warning"Public Const TAG_COLOR_ERROR As String = "error"
Source: ElevateUI public API catalog; tutorials cross-checked against ElevateUI(6).b4xlib. Visualizations are illustrative; sample code requires B4A compilation.