B4A Library [B4X] [XUI] AS Draggable Bottom Card

Alexander Stolte

Licensed User
This is my 2k'th post on this Forum and i want to share a nice library with you i made some months ago.
It was not easy to create this library, it took many hours of testing and programming to make the user experience as good as possible.

If you want to support me, then you can do this here. Thanks :)

This lib. is only for B4I and B4A.
B4J is not tested and i currently dont want to support it

  • cross-platform compatible
  • easy to use
  • use your own header and body layout
  • 2 states - half expanded and full expanded
  • Events
  • and more...
Some design inspiration:

bottom card.PNG


Author: Alexander Stolte
Version: 1.00

  • ASDraggableBottomCard
    • Events:
      • Close
      • Closed
      • Open
      • Opened
      • VisibleBodyHeightChanged (height As Double)
    • Fields:
      • g_hide_duration As Int
      • g_show_duration As Int
    • Functions:
      • Base_Resize (Width As Double, Height As Double) As String
      • BodyPanel As B4XView
      • Class_Globals As String
      • Create (Parent As B4XView, first_height As Float, second_height As Float, header_height As Float, width As Float, orientation As Int) As String
        Base type must be Object
      • ExpandFull As String
      • ExpandHalf As String
      • getCardBase As B4XView
      • getDarkPanelAlpha As Int
      • getIsOpen As Boolean
      • HeaderPanel As B4XView
      • Hide (ignore_event As Boolean)
      • Initialize (Callback As Object, EventName As String) As String
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • Orientation_LEFT As Int
      • Orientation_MIDDLE As Int
      • Orientation_RIGHT As Int
      • setDarkPanelAlpha (alpha As Int) As String
      • Show (ignore_event As Boolean) As String
    • Properties:
      • CardBase As B4XView [read only]
      • DarkPanelAlpha As Int
      • IsOpen As Boolean [read only]
  • 1.00
    • Release
Have Fun :)