B4X Store

ELEVATEUI · B4A · XUI

UIFloatingPanel

Overlay compact information without leaving the current screen.

78 modules 1,780 APIs

Effects & interface utilities

What it solves

Overlay compact information without leaving the current screen.

Animated conceptual demonstration, not an exact Android control screenshot.

17 methods0 Designer1 events

When to use this module

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

Build a floating calendar

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.

Conceptual preview
Select a dateâ–¾
M
T
W
T
F
S
S
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
18 Nov 2026
B4A integration — adaptation example
' 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

B4A integration examples

Tutorials are based on existing project examples or audited APIs. Check each example’s prerequisites; B4A compilation is not claimed.

Floating calendar · UIFloatingPanel + UICalendar
Reviewed integration tutorial Audited UIFloatingPanel/UICalendar public API Not B4A-compiled

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

Public methods reference

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.

Callback As ObjectEventName As StringParent As B4XView
Public Sub PanelSize(Width As Float,Height As Float)

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

Width As FloatHeight As Float
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.

Left As FloatTop As FloatWidth As FloatHeight As Float
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.

Orientation As String
Public Sub setDuration(Duration As Long)

Update duration at runtime when this setting changes.

Original catalog note: Default: 150

Duration As Long
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.

Designer · 0

No custom Designer properties were found in the audited API.

Public events and how to implement them · 1

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.

Close

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 fields, constants and types

Public isopen As Boolean = FalsePublic ShadowColor As Int
Source: ElevateUI public API catalog; tutorials cross-checked against ElevateUI(6).b4xlib. Visualizations are illustrative; sample code requires B4A compilation.