B4X Store

ELEVATEUI · B4A · XUI

UICarousel

Present a sequence of cards or panels for swipe-like navigation.

78 modules 1,780 APIs

Navigation & onboarding

What it solves

Present a sequence of cards or panels for swipe-like navigation.

Animated conceptual demonstration, not an exact Android control screenshot.

15 methods0 Designer2 events

When to use this module

In a multi-screen application, connect every menu action to a real destination and preserve the active selection.

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

15 audited signatures

Public Sub Initialize(Callback As Object, EventName As String)

Prepare the instance before its other methods.

Callback As ObjectEventName As String
Public Sub CreateCarousel(Parent As B4XView, Left As Int, Top As Int, Width As Int, Height As Int)

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

Parent As B4XViewLeft As IntTop As IntWidth As IntHeight As Int
Public Sub AddSlideBitmap(Bmp As B4XBitmap)

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

Bmp As B4XBitmap
Public Sub AddSlideImageFile(Dir As String, FileName As String)

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

Dir As StringFileName As String
Public Sub AddSlidePanel(ContentPanel As B4XView)

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

ContentPanel As B4XView
Public Sub NextSlide

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

Public Sub PreviousSlide

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

Public Sub GoToSlide(Index As Int)

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

Index As Int
Public Sub StartAutoPlay

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

Public Sub StopAutoPlay

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

Public Sub SetIndicatorColors(Inactive As Int, Active As Int)

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

Original catalog note: Métodos públicos para personalización adicional

Inactive As IntActive As Int
Public Sub SetNavButtonColors(BgColor As Int, IconColor As Int)

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

BgColor As IntIconColor As Int
Public Sub SetBackground(Color As Int)

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

Color As Int
Public Sub GetCurrentIndex As Int

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

Returns: Int

Public Sub GetTotalSlides As Int

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

Returns: Int

Designer · 0

No custom Designer properties were found in the audited API.

Public events and how to implement them · 2

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.

PageChanged(PageIndex As Int)

Raised when a selection or value changes; use it to update dependent data.

B4A handler signature with Demo prefix

Private Sub Demo_PageChanged(PageIndex As Int)
    Log("PageChanged")
End Sub
PageClick(PageIndex As Int)

Raised when the user taps the control; use it to trigger a real action.

B4A handler signature with Demo prefix

Private Sub Demo_PageClick(PageIndex As Int)
    Log("PageClick")
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 fields, constants and types

Public Direction As String = "HORIZONTAL" ' "HORIZONTAL" or "VERTICAL"Public AutoPlayIntervalMs As Long = 3000Public ShowNavigationButtons As Boolean = TruePublic ShowIndicators As Boolean = TruePublic CornerRadius As Float = 12dipPublic IndicatorColor As Int = 0x80FFFFFF ' Semi-transparent WhitePublic ActiveIndicatorColor As Int = 0xFFFFFFFF ' Solid WhitePublic IndicatorSize As Int = 8dipPublic ActiveIndicatorSize As Int = 12dipPublic IndicatorSpacing As Int = 16dipPublic IndicatorCornerRadius As Float = 4dipPublic NavButtonColor As Int = 0x80000000Public NavButtonIconColor As Int = 0xFFFFFFFFPublic NavButtonSize As Int = 36dipPublic NavButtonCornerRadius As Float = 18dipPublic BackgroundColor As Int = 0xFF000000 ' BlackPublic TransitionDuration As Int = 250 ' msPublic EnableSwipe As Boolean = True
Source: ElevateUI public API catalog; tutorials cross-checked against ElevateUI(6).b4xlib. Visualizations are illustrative; sample code requires B4A compilation.