B4X Store

ELEVATEUI · B4A · XUI

UtilsUI

Reuse shared interface helper methods instead of repeating low-level UI code.

78 modules 1,780 APIs

Effects & interface utilities

What it solves

Reuse shared interface helper methods instead of repeating low-level UI code.

Animated conceptual demonstration, not an exact Android control screenshot.

51 methods0 Designer0 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

51 audited signatures

Public Sub colortobackcolor(color As Int, ajust As Float) As Int

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

Original catalog note: This function takes a color in ARGB format and adjusts its RGB components by subtracting a given value ('ajust') from the Red, Green, and Blue components. The Alpha component (transparency) remains unchanged. The function ensures that the RGB components stay within the valid range of 0 to 255. It then creates and returns a new color with the adjust

color As Intajust As Float

Returns: Int

Public Sub GetContrastColor(Color As Int, ForLightColor As Int, ForDarkColor As Int) As Int

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

Original catalog note: This function returns a contrasting color (either white or black) based on the lightness or darkness of the given color. It calculates the YIQ value of the color and returns a specified color for light or dark colors accordingly.

Color As IntForLightColor As IntForDarkColor As Int

Returns: Int

Public Sub calcValue(Action As String, TableName As String, Column As String, sql As SQL) As Object

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

Original catalog note: This function performs various calculations (avg, max, min, sum, count) on a specified column of a table in the database. It takes the action type, table name, column name, and SQL object to execute the query.

Action As StringTableName As StringColumn As Stringsql As SQL

Returns: Object

Public Sub calcValue2(Action As String, TableName As String, Column As String, value As String, sql As SQL) As Object

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

Original catalog note: This function performs calculations (avg, max, min, sum, count) based on a specific column value filter. It takes the action type, table name, column name, value to filter, and SQL object to execute the query.

Action As StringTableName As StringColumn As Stringvalue As Stringsql As SQL

Returns: Object

Public Sub SetShadow(View As B4XView, Offset As Double, ShadowColor As Int)

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

Original catalog note: This function sets a shadow effect for a given view. It adjusts the shadow's offset (distance) and color. It also checks if the view has a transparent background and sets a semi-transparent background if necessary.

View As B4XViewOffset As DoubleShadowColor As Int
Public Sub Lblcolor(Lbl As B4XView, TextColor As Int, textSize As Int, text As String, font As B4XFont, Aligment As String)

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

Original catalog note: This function customizes the appearance of a label. It sets the font, text color, size, content, and alignment for the label.

Lbl As B4XViewTextColor As InttextSize As Inttext As Stringfont As B4XFontAligment As String
Public Sub AddSplitColorLabel(Parent As B4XView, Left As Int, Top As Int, Width As Int, Height As Int, _

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

Original catalog note: Creates a centered text made of two colorized parts. Internally it uses one transparent host and two labels, so each part keeps its own color while the complete phrase remains centered as a single block.

Public Sub CreateLabel(EventName As String) As B4XView

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

Original catalog note: This function creates a label with the specified event name. It initializes the label and sets properties for it.

EventName As String

Returns: B4XView

Public Sub CreateImageView(EventName As String) As B4XView

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

Original catalog note: This function creates an image view with the specified event name. It initializes and returns the created image view.

EventName As String

Returns: B4XView

Public Sub ChangeBothColor(color As Int)

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

Original catalog note: <resources> <color name="colorPrimary">#00000000</color> <color name="colorPrimaryDark">#00000000</color> <color name="colorAccent">#FF4081</color> </resources>)</code> This function changes the color of both the status bar and navigation bar to the specified color.

color As Int
Public Sub SetStatusBarColor(color As Int)

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

Original catalog note: This function sets the status bar color to the specified color (if the SDK version is 21 or higher).

color As Int
Public Sub SetNavigationBarColor(color As Int)

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

Original catalog note: This function sets the navigation bar color to the specified color (if the SDK version is 21 or higher).

color As Int
Public Sub ValidateEmail(EmailAddress As String) As Boolean

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

Original catalog note: This function validates an email address using a regular expression. It returns True if the email matches the pattern, otherwise returns False.

EmailAddress As String

Returns: Boolean

Public Sub SetFontSize(View As B4XView)

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

Original catalog note: This function adjusts the text size of a view based on the user's font scale setting. It skips views that do not support the TextSize property (like Activity).

View As B4XView
Public Sub RestoreOriginalFontSize(Activity As B4XView)

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

Original catalog note: This function adjusts the text size of a view based on the user's font scale setting. Recorre todas las vistas y restaura su tamaño original de fuente.

Activity As B4XView
Public Sub manterFont(a As B4XView)

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

Original catalog note: This subroutine adjusts the font size of EditText, Label, and Button views in an Activity so that it ignores the font scale set by the user in the device's accessibility settings. It ensures that the font sizes remain consistent regardless of the user's font scale preference.

a As B4XView
public Sub AjustaImageView(Imv As ImageView, FileName As String)

Public API declaration; refer to the library behavior for usage details.

Original catalog note: Verified against supplied 2026-11-28 .b4xlib

Imv As ImageViewFileName As String
Public Sub SetAnimation(InAnimation As String, OutAnimation As String)

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

Original catalog note: Sets the transition animation between activities (enter and exit)

InAnimation As StringOutAnimation As String
Public Sub AddforCode_Customlistview(mbase As B4XView, list As CustomListView, callback As Object, EventName As String, showscroll As Boolean, IsVertical As Boolean)

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

Original catalog note: Configures a CustomListView for different orientations and other options

mbase As B4XViewlist As CustomListViewcallback As ObjectEventName As Stringshowscroll As BooleanIsVertical As Boolean
Sub Tamanho_TextoVertical(lb As Label, texto As String) As Int

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

Original catalog note: Measures the vertical height of the text in a Label (for multiline text)

lb As Labeltexto As String

Returns: Int

Sub Tamanho_TextoHorizontal(lb As Label, Texto As String) As Int

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

Original catalog note: Measures the horizontal width of the text in a Label (for single-line text)

lb As LabelTexto As String

Returns: Int

public Sub setPadding(v As View, Left As Int, Top As Int, Right As Int, Bottom As Int)

Public API declaration; refer to the library behavior for usage details.

Original catalog note: Verified against supplied 2026-11-28 .b4xlib

v As ViewLeft As IntTop As IntRight As IntBottom As Int
Sub clipBoard_copy(text As String)

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

Original catalog note: Copies a text to the clipboard and shows a Toast message

text As String
public Sub setRotation(v As View, Angle As Float)

Public API declaration; refer to the library behavior for usage details.

Original catalog note: Verified against supplied 2026-11-28 .b4xlib

v As ViewAngle As Float
Public Sub CompareAndGenerateRandomColor(color1 As Int, color2 As Int) As Int

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

Original catalog note: Compares two colors and generates a random color between them

color1 As Intcolor2 As Int

Returns: Int

public Sub screenOFF(Activate As Boolean)

Public API declaration; refer to the library behavior for usage details.

Original catalog note: Verified against supplied 2026-11-28 .b4xlib

Activate As Boolean
Public Sub intToHex(clr As Int) As String

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

Original catalog note: Converts an integer color to a hexadecimal value (e.g., "#RRGGBBAA") Parameters: clr (Int) - The integer color value to convert.

clr As Int

Returns: String

Public Sub HexToInt(Hex As String) As Int

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

Original catalog note: </code> This subroutine converts a hexadecimal string color value to an integer. It takes the hexadecimal string color value as input and returns the integer representation. Parameters: Hex (String) - The hexadecimal string color value to convert.

Hex As String

Returns: Int

Public Sub AddNormalEvent(Title As String, Description As String, Location As String, StartDate As String)

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

Original catalog note: This subroutine adds a normal (single) event to the calendar with default parameters. The event is not recurring, and it's not an all-day event.

Title As StringDescription As StringLocation As StringStartDate As String
Public Sub AddBirthdayEvent(Name As String, BirthDate As String)

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

Original catalog note: This subroutine adds a birthday event to the calendar. It generates an event with the name "Birthday of [Name]", sets the recurrence to yearly, and marks it as an all-day event.

Name As StringBirthDate As String
Public Sub AddAnniversaryEvent(Title As String, AnniversaryDate As String)

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

Original catalog note: This subroutine adds an anniversary event to the calendar. The event is set to recur yearly and is marked as an all-day event.

Title As StringAnniversaryDate As String
Public Sub AddCountdownEvent(Title As String, CountdownDate As String, CountdownTime As String)

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

Original catalog note: This subroutine adds a countdown event to the calendar. It creates a single event with a description stating the countdown time.

Title As StringCountdownDate As StringCountdownTime As String
Public Sub SetPanelCornerRadius(View As B4XView, CornerRadius As Float, TopLeft As Boolean, TopRight As Boolean, BottomLeft As Boolean, BottomRight As Boolean)

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

Original catalog note: This subroutine adjusts the corner radius of a view (e.g., a button or panel). It allows you to set different corner radii for each corner (top-left, top-right, bottom-left, and bottom-right). This functionality works across B4A, B4i, and B4J.

View As B4XViewCornerRadius As FloatTopLeft As BooleanTopRight As BooleanBottomLeft As BooleanBottomRight As Boolean
Public Sub MeasureTextWidth(Text As String, Font1 As B4XFont) As Int

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

Original catalog note: This subroutine measures the width of a given text string with a specified font. It works on B4A, B4i, and B4J platforms.

Text As StringFont1 As B4XFont

Returns: Int

Public Sub SetAlphaToIntColor(color As Int, newalpha As Int) As Int

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

Original catalog note: This subroutine adjusts the alpha value of a given color. It changes the alpha (transparency) of the color to a new specified alpha value. The input color is in ARGB format, and the output color is modified with the new alpha value. Función para cambiar el alfa (transparencia) de un color

color As Intnewalpha As Int

Returns: Int

Public Sub ViewScreenPositionLetfButtom(view As B4XView) As Int()

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

Original catalog note: This subroutine calculates the screen position of the bottom-left corner of a given view. It works across all platforms (B4A, B4I, and B4J) and returns the coordinates as an array. The position is calculated relative to the view's parent and the parent’s parents, until the root view is reached. The result is stored in an array with two values: the

view As B4XView

Returns: Int()

Public Sub EncryptText(text As String, password As String) As Byte()

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

Original catalog note: Encrypts a given text using a password and returns the encrypted data as a byte array.

text As Stringpassword As String

Returns: Byte()

Public Sub DecryptText(EncryptedData() As Byte, password As String) As String

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

Original catalog note: Decrypts previously encrypted data using a password and returns the original text.

EncryptedData( As unknown

Returns: Byte,

Public Sub CreateRoundBitmap(Input As B4XBitmap, Size As Int, ColorBorder As Int, BorderSize As Float) As B4XBitmap

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

Input As B4XBitmapSize As IntColorBorder As IntBorderSize As Float

Returns: B4XBitmap

Public Sub ColorToPastel(ColorInt As Int) As Int

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

Original catalog note: Convierte cualquier color a su versión pastel (baja saturación, tono claro) Recibe: ColorInt - Color en formato Int (ej: 0xFFRRGGBB) Devuelve: Int con el color pastel equivalente

ColorInt As Int

Returns: Int

Public Sub CreateFieldsetBackground(TargetView As B4XView, TitleText As String, TitleFont As B4XFont, TitleColor As Int, BorderColor As Int, BorderWidthDip As Float, CornerRadiusDip As Float) As BitmapDrawable

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

Original catalog note: <code> Dim fFont As B4XFont = xui.CreateDefaultFont(13) xFieldset.Background = UtilsUI.CreateFieldsetBackground(xFieldset, "Modalidad de Juego", fFont, xui.Color_RGB(166, 173, 187), Colors.LightGray, 1.5dip, 8dip) </code>

TargetView As B4XViewTitleText As StringTitleFont As B4XFontTitleColor As IntBorderColor As IntBorderWidthDip As FloatCornerRadiusDip As Float

Returns: BitmapDrawable

Public Sub SetLabelGlow(lbl As B4XView, Radius As Float, GlowColor As Int)

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

Original catalog note: Applies a glowing shadow effect to a Label (or B4XView wrapping a Label)

lbl As B4XViewRadius As FloatGlowColor As Int
Public Sub DialogSoftColor(BaseColor As Int) As Int

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

Original catalog note: Shared visual language used by the ElevateUI dialogs. These helpers intentionally keep the public dialog APIs untouched while giving every dialog the same rounded, elevated surface and accent treatment.

BaseColor As Int

Returns: Int

Public Sub DialogTextColor As Int

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

Returns: Int

Public Sub DialogMutedTextColor As Int

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

Returns: Int

Public Sub ApplyDialogSurface(View As B4XView, Radius As Float)

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

View As B4XViewRadius As Float
Public Sub ApplyDialogSurfaceStyle(View As B4XView, Radius As Float, BackgroundColor As Int, BorderColor As Int, BorderWidth As Float)

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

Original catalog note: Applies background and border style to a B4XView from the shared dialog utility.

View As B4XViewRadius As FloatBackgroundColor As IntBorderColor As IntBorderWidth As Float
Public Sub ApplyDialogHeader(View As B4XView, AccentColor As Int, Radius As Float)

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

View As B4XViewAccentColor As IntRadius As Float
Public Sub AddDialogIconLabel(Parent As B4XView, Icon As String, Font As B4XFont, IconColor As Int, AccentColor As Int, Left As Int, Top As Int, Size As Int) As B4XView

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

Original catalog note: Creates the soft circular icon treatment shown in the dialog mockups. Icon may be a FontAwesome/Material character; images remain supported by each dialog's existing image path and animations.

Parent As B4XViewIcon As StringFont As B4XFontIconColor As IntAccentColor As IntLeft As IntTop As IntSize As Int

Returns: B4XView

Public Sub ConfigureIconLabel(Lbl As B4XView, Icon As Char, Font As B4XFont, IconColor As Int, GlowColor As Int)

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

Original catalog note: Configures a FontAwesome/Material character and applies the same glow used by the dialog mockups. Bitmap icons keep their existing ImageView path.

Lbl As B4XViewIcon As CharFont As B4XFontIconColor As IntGlowColor As Int
Public Sub StyleDialogAction(View As B4XView, BackgroundColor As Int, TextColor As Int, Radius As Float)

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

View As B4XViewBackgroundColor As IntTextColor As IntRadius As Float

Designer · 0

No custom Designer properties were found in the audited API.

Public events and how to implement them · 0

No public callback events are declared in the catalog. You can still handle B4A events for controls inserted inside it.

Public fields, constants and types

Public FontScale As Float
Source: ElevateUI public API catalog; tutorials cross-checked against ElevateUI(6).b4xlib. Visualizations are illustrative; sample code requires B4A compilation.