Public Sub Initialize (Callback As Object, EventName As String)
Prepare the instance before its other methods.
ELEVATEUI · B4A · XUI
Offer multiple selectable tags or chips for filtering and classification.
Effects & interface utilities
Offer multiple selectable tags or chips for filtering and classification.
Animated conceptual demonstration, not an exact Android control screenshot.
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.
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.
52 audited signatures
Public Sub Initialize (Callback As Object, EventName As String)
Prepare the instance before its other methods.
Public Sub DesignerCreateView (Base As Object, Lbl As Label, Props As Map)
Invoked automatically by the B4A Visual Designer; do not call manually.
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.
Public Sub setItems(Items As Object)
Update items at runtime when this setting changes.
Public Sub AddBadgeItem(Id As String, Text As String)
Use AddBadgeItem for its named operation; follow its exact signature.
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.
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.
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.
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 =======================================================================
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.
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 =======================================================================
Public Sub setVariant(Value As String)
Update variant at runtime when this setting changes.
Public Sub setBorderStyle(Value As String)
Update border style at runtime when this setting changes.
Public Sub setSelectionMode(Mode As String)
Update selection mode at runtime when this setting changes.
Public Sub setBadgeHeight(Height As Int)
Update badge height at runtime when this setting changes.
Public Sub setFontSize(Size As Int)
Update font size at runtime when this setting changes.
Public Sub setPadding(Padding As Int)
Update padding at runtime when this setting changes.
Public Sub setBackgroundColor(Color As Int)
Update background color at runtime when this setting changes.
Public Sub setBorderColor(Color As Int)
Update border color at runtime when this setting changes.
Public Sub setBorderSize(Size As Int)
Update border size at runtime when this setting changes.
Public Sub setRounded(Radius As Int)
Update rounded at runtime when this setting changes.
Public Sub setShadow(Shadow As Float)
Update shadow at runtime when this setting changes.
Public Sub setBadgeShadow(Shadow As Float)
Update badge shadow at runtime when this setting changes.
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 =======================================================================
Public Sub setItemIconChar(Id As String, IconChar As String)
Update item icon char at runtime when this setting changes.
Public Sub setItemIconColor(Id As String, IconColor As Int)
Update item icon color at runtime when this setting changes.
Public Sub setItemIconFont(Id As String, IconFont As B4XFont)
Update item icon font at runtime when this setting changes.
Public Sub setItemIconSize(Id As String, IconSize As Int)
Update item icon size at runtime when this setting changes.
Public Sub getItemIcon(Id As String) As String
Read the current item icon value for validation or UI synchronization.
Returns: String
Public Sub getItemIconInfo(Id As String) As Map
Read the current item icon info value for validation or UI synchronization.
Returns: Map
Public Sub RemoveItemIcon(Id As String)
Use RemoveItemIcon for its named operation; follow its exact signature.
Public Sub setBadgeFont(Font As B4XFont)
Update badge font at runtime when this setting changes.
Original catalog note: ======================================================================= PROPIEDADES PÚBLICAS - FUENTES =======================================================================
Public Sub setBadgeFontSize(Size As Int)
Update badge font size at runtime when this setting changes.
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.
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.
Returns: TItem
#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: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.
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
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
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 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"