B4X Store

ELEVATEUI · B4A · XUI

UIGradientMarket

Create gradient-oriented background or visual accents.

78 modules 1,780 APIs

Effects & interface utilities

What it solves

Create gradient-oriented background or visual accents.

Animated conceptual demonstration, not an exact Android control screenshot.

11 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

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.

TargetView As B4XViewOrientation As StringColorsList As List
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.

TargetView As B4XViewOrientation As StringColorsList As ListCornerRadius As Float
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>

X As DoubleY As DoubleColor As IntRadius As DoubleStrength As Double

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>

TargetView As B4XViewColorsList As List
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).

TargetView As B4XViewColorsList As ListCornerRadius As FloatQuality As Int
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.

ColorsList As 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.

Name As String

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>

TargetView As B4XViewPoints As ListBaseColor As IntCornerRadius As FloatQuality As Int
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.

Width As DoubleHeight As DoublePoints As ListBaseColor As IntCornerRadius As FloatQuality As Int

Returns: B4XBitmap

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.

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