Public Sub Initialize
Prepare the instance before its other methods.
Original catalog note: Initializes the gradient builder
ELEVATEUI · B4A · XUI
Create gradient-oriented background or visual accents.
Effects & interface utilities
Create gradient-oriented background or visual accents.
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.
11 audited signatures
Public Sub Initialize
Prepare the instance before its other methods.
Original catalog note: Initializes the gradient builder
Public Sub SetGradient(TargetView As B4XView, Orientation As String, ColorsList As List)
Use SetGradient for its named operation; follow its exact signature.
Original catalog note: Sets a modern multi-color gradient background on a B4XView (Activity, Panel, Button, etc.) TargetView: The B4XView or Activity to apply the gradient to. Orientation: The gradient direction (e.g. "TOP_BOTTOM", "TR_BL", "RIGHT_LEFT", "BR_TL", "BOTTOM_TOP", "BL_TR", "LEFT_RIGHT", "TL_BR") ColorsList: A List of integers containing the ARGB colors.
Public Sub SetGradientWithCorners(TargetView As B4XView, Orientation As String, ColorsList As List, CornerRadius As Float)
Use SetGradientWithCorners for its named operation; follow its exact signature.
Original catalog note: Sets a modern multi-color gradient background with rounded corner support TargetView: The B4XView or Activity to apply the gradient to. Orientation: The gradient direction. ColorsList: A List of integers containing the ARGB colors. CornerRadius: Corner radius in pixels.
Public Sub CreateMeshPoint(X As Double, Y As Double, Color As Int, Radius As Double, Strength As Double) As Map
Use CreateMeshPoint for its named operation; follow its exact signature.
Original catalog note: Creates a color point. X and Y are normalized (0..1); radius must be positive. Strength controls the point's influence. Points outside the view are also allowed. <code> points.Add(gradient.CreateMeshPoint(0.2, 0.3, 0xFFFF7096, 0.6, 1)) </code>
Returns: Map
Public Sub SetAutoGradient(TargetView As B4XView, ColorsList As List)
Use SetAutoGradient for its named operation; follow its exact signature.
Original catalog note: Automatically builds a modern background from the caller's ARGB color list. Supports 1..32 colors. No preset, coordinates or theme name is required. The same ordered palette generates the same layout on every refresh. <code> gradient.SetAutoGradient(panel, Array As Int(0xFFFF6489, 0xFF8262EC, 0xFF28C9BC)) </code>
Public Sub SetAutoGradientWithCorners(TargetView As B4XView, ColorsList As List, CornerRadius As Float, Quality As Int)
Use SetAutoGradientWithCorners for its named operation; follow its exact signature.
Original catalog note: Automatic palette-based background with corner and quality controls. Reapply after resizing the target. Quality is the longest bitmap edge (32..512).
Public Sub CreateMeshPointsFromColors(ColorsList As List) As List
Use CreateMeshPointsFromColors for its named operation; follow its exact signature.
Original catalog note: Converts the palette into evenly distributed color points using a golden-angle spiral. One color produces a solid background. Empty/oversized palettes return an empty list.
Returns: List
Public Sub CreateMeshPreset(Name As String) As List
Use CreateMeshPreset for its named operation; follow its exact signature.
Original catalog note: Optional legacy palette examples. Use SetAutoGradient for caller-defined colors.
Returns: List
Public Sub SetMeshGradient(TargetView As B4XView, Points As List, BaseColor As Int, CornerRadius As Float, Quality As Int)
Use SetMeshGradient for its named operation; follow its exact signature.
Original catalog note: CornerRadius uses the same units as TargetView.Width/Height. Call again after resizing when rounded corners must retain their physical size. This replaces the target background, but does not add child views or touch its content. <code> gradient.SetMeshGradient(panel, gradient.CreateMeshPreset("AURORA"), 0xFF152040, 12dip, 320) </code>
Public Sub ClearMeshCache
Use ClearMeshCache for its named operation; follow its exact signature.
Original catalog note: Clears the single-image cache. It never retains a target view.
Public Sub RenderMesh(Width As Double, Height As Double, Points As List, BaseColor As Int, CornerRadius As Float, Quality As Int) As B4XBitmap
Use RenderMesh for its named operation; follow its exact signature.
Original catalog note: Produces a bitmap for export or use in an ImageView. Width/Height define the aspect ratio; Quality caps the longest rendered edge. Invalid/empty point lists return an uninitialized bitmap.
Returns: B4XBitmap
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.