B4X Store

ELEVATEUI · B4A · XUI

UIGlassEffect

Apply glass-like translucent styling to a view without changing its business logic.

78 modules 1,780 APIs

Effects & interface utilities

What it solves

Apply glass-like translucent styling to a view without changing its business logic.

Animated conceptual demonstration, not an exact Android control screenshot.

33 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

33 audited signatures

Public Sub Initialize

Prepare the instance before its other methods.

Original catalog note: Initializes the object.

Public Sub Clear

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

Original catalog note: Clears the cached blur and shadow bitmaps to force a full redraw.

Public Sub SetGlassProprety(view As B4XView, BorderCorner As Int)

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

Original catalog note: Applies a customized Frosted Glassmorphism effect to the target view container. <code> Dim glass As UIGlassEffect glass.Initialize glass.SetGlassProprety(pnlCard, 20dip) </code>

view As B4XViewBorderCorner As Int
Public Sub SetGlassProperty(view As B4XView, BorderCorner As Int)

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

Original catalog note: Alias con el nombre corregido para evitar confusiones de tipeo futuras. <code> glass.SetGlassProperty(pnlCard, 20dip) </code>

view As B4XViewBorderCorner As Int
Public Sub SetGlassPropertyWithScrollView(view As B4XView, BorderCorner As Int)

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

Original catalog note: Applies the glass effect inside a ScrollView (or any deep-nested container). <code> glass.SetGlassPropertyWithScrollView(pnlCard, 20dip) </code>

view As B4XViewBorderCorner As Int
Public Sub SetGlassPropertyExplicit(view As B4XView, TargetRoot As B4XView, BorderCorner As Int)

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

Original catalog note: Applies glass using an explicit root (for complex hierarchies without ScrollView). <code> glass.SetGlassPropertyExplicit(pnlCard, RootPanel, 20dip) </code>

view As B4XViewTargetRoot As B4XViewBorderCorner As Int
Public Sub Refresh(BorderCorner As Int)

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

Original catalog note: Forces a full redraw of the glass effect by invalidating the cached snapshot. <code> glass.Refresh(20dip) </code>

BorderCorner As Int
Public Sub SetPreset(PresetName As String)

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

Original catalog note: Applies a named visual preset. <code> glass.SetPreset("frost") </code>

PresetName As String
Public Sub setShowHighlight(Value As Boolean)

Update show highlight at runtime when this setting changes.

Value As Boolean
Public Sub getShowHighlight As Boolean

Read the current show highlight value for validation or UI synchronization.

Returns: Boolean

Public Sub setHighlightColor(Value As Int)

Update highlight color at runtime when this setting changes.

Value As Int
Public Sub getHighlightColor As Int

Read the current highlight color value for validation or UI synchronization.

Returns: Int

Public Sub setHighlightHeight(Value As Int)

Update highlight height at runtime when this setting changes.

Value As Int
Public Sub setBorderColor(Value As Int)

Update border color at runtime when this setting changes.

Original catalog note: === Setters & Getters ===

Value As Int
Public Sub getBorderColor As Int

Read the current border color value for validation or UI synchronization.

Returns: Int

Public Sub setBorderWidth(Value As Int)

Update border width at runtime when this setting changes.

Value As Int
Public Sub getBorderWidth As Int

Read the current border width value for validation or UI synchronization.

Returns: Int

Public Sub setBorderSize(Value As Int)

Update border size at runtime when this setting changes.

Value As Int
Public Sub getBorderSize As Int

Read the current border size value for validation or UI synchronization.

Returns: Int

Public Sub setBorderGlowSize(Value As Int)

Update border glow size at runtime when this setting changes.

Value As Int
Public Sub getBorderGlowSize As Int

Read the current border glow size value for validation or UI synchronization.

Returns: Int

Public Sub setTintColor(Value As Int)

Update tint color at runtime when this setting changes.

Value As Int
Public Sub getTintColor As Int

Read the current tint color value for validation or UI synchronization.

Returns: Int

Public Sub setTintAlpha(Value As Int)

Update tint alpha at runtime when this setting changes.

Value As Int
Public Sub getTintAlpha As Int

Read the current tint alpha value for validation or UI synchronization.

Returns: Int

Public Sub setBlurIntensity(Value As Int)

Update blur intensity at runtime when this setting changes.

Value As Int
Public Sub getBlurIntensity As Int

Read the current blur intensity value for validation or UI synchronization.

Returns: Int

Public Sub setReduceScale(Value As Int)

Update reduce scale at runtime when this setting changes.

Value As Int
Public Sub getReduceScale As Int

Read the current reduce scale value for validation or UI synchronization.

Returns: Int

Public Sub setShadowElevation(Value As Float)

Update shadow elevation at runtime when this setting changes.

Value As Float
Public Sub getShadowElevation As Float

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

Returns: Float

Public Sub setShadowColor(Value As Int)

Update shadow color at runtime when this setting changes.

Value As Int
Public Sub getShadowColor As Int

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

Returns: Int

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 Const GlASSEFECT_LIGHT As String = "light"Public Const GlASSEFECT_DARK As String = "dark"Public Const GlASSEFECT_NEON As String = "neon"Public Const GlASSEFECT_FROST As String = "frost"
Source: ElevateUI public API catalog; tutorials cross-checked against ElevateUI(6).b4xlib. Visualizations are illustrative; sample code requires B4A compilation.