Public Sub Initialize(Callback As Object, EventName As String,Parent As B4XView)
Prepare the instance before its other methods.
Original catalog note: Initializes the object. You can add parameters to this method if needed.
ELEVATEUI · B4A · XUI
Overlay compact information without leaving the current screen.
Effects & interface utilities
Overlay compact information without leaving the current screen.
Animated conceptual demonstration, not an exact Android control screenshot.
Open a date picker or compact filter overlay on the current screen instead of navigating to another Activity.
Before integrating, examine its methods, events and Designer options.
COMBINED EXAMPLE · 2 MODULES
UIFloatingPanel supplies the floating surface while UICalendar handles date selection. Your form receives the chosen date without navigating to another screen.
Code follows verified ElevateUI v5 public signatures and events; compilation and on-device testing remain pending.
' Example for B4A Activity — ElevateUI v5
' Two independent modules: UIFloatingPanel + UICalendar
Sub Globals
Private Floating As UIFloatingPanel
Private Calendar As UICalendar
Private OpenDate As Button
Private SelectedDate As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
OpenDate.Initialize("OpenDate")
OpenDate.Text = "Choose date"
Activity.AddView(OpenDate, 18dip, 24dip, 160dip, 48dip)
SelectedDate.Initialize("")
SelectedDate.Text = "No date selected"
Activity.AddView(SelectedDate, 18dip, 82dip, 300dip, 40dip)
Floating.Initialize(Me, "Floating", Activity)
Floating.PanelSize(320dip, 320dip)
Calendar.Initialize(Me, "Calendar")
Calendar.AddToParent(Floating.Panel, 8dip, 8dip, 304dip, 304dip)
Calendar.setSelectedDate(DateTime.Now)
End Sub
Private Sub OpenDate_Click
Floating.Show(16dip, 132dip, 320dip, 320dip)
End Sub
Private Sub Calendar_SelectedDateChanged(Date As String)
SelectedDate.Text = Date
Floating.Close
End Sub
Private Sub Floating_Close
Log("Floating calendar closed")
End Sub
Tutorials are based on existing project examples or audited APIs. Check each example’s prerequisites; B4A compilation is not claimed.
Enable ElevateUI and XUI. Create a B4A Activity; adjust dp dimensions to your screen. Verify creation/show order on your library version.
' UIFloatingPanel + UICalendar — B4A integration recipe.
' Both controls retain independent lifecycles and public methods.
Sub Globals
Private DatePopup As UIFloatingPanel
Private DateCalendar As UICalendar
End Sub
Sub Activity_Create(FirstTime As Boolean)
DatePopup.Initialize(Me, "DatePopup", Activity)
DatePopup.PanelSize(330dip, 385dip)
DatePopup.setDuration(250)
DatePopup.setOpenOrientation(DatePopup.Open_BottomTop)
DateCalendar.Initialize(Me, "DateCalendar")
DateCalendar.AddToParent(DatePopup.Panel, 10dip, 10dip, 310dip, 345dip)
DateCalendar.setStartOnMonday(True)
End Sub
Private Sub BtnCalendar_Click
' Place the popup within the usable Activity area.
DatePopup.Show(12dip, 80dip, 330dip, 385dip)
End Sub
Private Sub DateCalendar_SelectedDateChanged(Date As String)
Log("Selected date: " & Date)
DatePopup.Close
End Sub
Private Sub DatePopup_Close
Log("Calendar dismissed")
End Sub
17 audited signatures
Public Sub Initialize(Callback As Object, EventName As String,Parent As B4XView)
Prepare the instance before its other methods.
Original catalog note: Initializes the object. You can add parameters to this method if needed.
Public Sub PanelSize(Width As Float,Height As Float)
Use PanelSize for its named operation; follow its exact signature.
Public Sub Show(Left As Float,Top As Float,Width As Float,Height As Float)
Use Show for its named operation; follow its exact signature.
Public Sub Close
Use Close for its named operation; follow its exact signature.
Public Sub getPanel As B4XView
Read the current panel value for validation or UI synchronization.
Returns: B4XView
Public Sub setOpenOrientation(Orientation As String)
Update open orientation at runtime when this setting changes.
Public Sub setDuration(Duration As Long)
Update duration at runtime when this setting changes.
Original catalog note: Default: 150
Public Sub getOpenOrientation_None As String
Read the current open orientation none value for validation or UI synchronization.
Original catalog note: Opens the panel without slide, but with fade
Returns: String
Public Sub getOpen_LeftBottom As String
Read the current open left bottom value for validation or UI synchronization.
Original catalog note: Opens the panel from left to bottom
Returns: String
Public Sub getOpen_RightBottom As String
Read the current open right bottom value for validation or UI synchronization.
Original catalog note: Opens the panel from right to bottom
Returns: String
Public Sub getOpen_LeftTop As String
Read the current open left top value for validation or UI synchronization.
Original catalog note: Opens the panel from left to top
Returns: String
Public Sub getOpen_RightTop As String
Read the current open right top value for validation or UI synchronization.
Original catalog note: Opens the panel from right to top
Returns: String
Public Sub getOpen_LeftRight As String
Read the current open left right value for validation or UI synchronization.
Original catalog note: Opens the panel from left to right
Returns: String
Public Sub getOpen_RightLeft As String
Read the current open right left value for validation or UI synchronization.
Original catalog note: Opens the panel from right to left
Returns: String
Public Sub getOpen_TopBottom As String
Read the current open top bottom value for validation or UI synchronization.
Original catalog note: Opens the panel from top to bottom
Returns: String
Public Sub getOpen_BottomTop As String
Read the current open bottom top value for validation or UI synchronization.
Original catalog note: Opens the panel from bottom to top
Returns: String
Sub Reset
Use Reset for its named operation; follow its exact signature.
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 the component closes; use it to clean up state or restore focus.
B4A handler signature with Demo prefix
Private Sub Demo_Close()
Log("Close")
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 isopen As Boolean = FalsePublic ShadowColor As Int