Public Sub Initialize(Callback As Object, EventName As String)
Prepare the instance before its other methods.
ELEVATEUI · B4A · XUI
Present a sequence of cards or panels for swipe-like navigation.
Navigation & onboarding
Present a sequence of cards or panels for swipe-like navigation.
Animated conceptual demonstration, not an exact Android control screenshot.
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.
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.
15 audited signatures
Public Sub Initialize(Callback As Object, EventName As String)
Prepare the instance before its other methods.
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.
Public Sub AddSlideBitmap(Bmp As B4XBitmap)
Use AddSlideBitmap for its named operation; follow its exact signature.
Public Sub AddSlideImageFile(Dir As String, FileName As String)
Use AddSlideImageFile for its named operation; follow its exact signature.
Public Sub AddSlidePanel(ContentPanel As B4XView)
Use AddSlidePanel for its named operation; follow its exact signature.
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.
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
Public Sub SetNavButtonColors(BgColor As Int, IconColor As Int)
Use SetNavButtonColors for its named operation; follow its exact signature.
Public Sub SetBackground(Color As Int)
Use SetBackground for its named operation; follow its exact signature.
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
No custom Designer properties were found in the audited API.
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.
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
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 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