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
B4J is now supported
Features
ASDraggableBottomCard
Author: Alexander Stolte
Version: 1.03
draggable


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
B4J is now supported
Features
- cross-platform compatible
- easy to use
- use your own header and body layout
- 2 states - half expanded and full expanded
- Events
- and more...
ASDraggableBottomCard
Author: Alexander Stolte
Version: 1.03
draggable
- 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
- getFirstHeight As Float
- getHeaderHeight As Float
gets the header height - getIsOpen As Boolean
- getSecondHeight As Float
- 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
- setCornerRadius_Header (radius As Float) As String
sets the corner radius of the header - setDarkPanelAlpha (alpha As Int) As String
- Show (ignore_event As Boolean) As String
- Properties:
- CardBase As B4XView [read only]
- CornerRadius_Header
sets the corner radius of the header - DarkPanelAlpha As Int
- FirstHeight As Float [read only]
- HeaderHeight As Float [read only]
gets the header height - IsOpen As Boolean [read only]
- SecondHeight As Float [read only]
- Events:
- 1.00
- Release
- 1.01
- Various bug fixes and improvements
- The menu no longer closes when the last swipe went up, so it is now possible for the user to cancel a full close
- 1.02
- Add CornerRadius_Header - sets the CornerRadius of the header
- dont use asdbc_main.HeaderPanel.Height if your set the corner radius, the returning height is not the display height
- use HeaderHeight instead
- Add HeaderHeight - gets the displayed header height
- Supports now B4J
- Add CornerRadius_Header - sets the CornerRadius of the header
- 1.03
- Add set FirstHeight - sets the FirstHeight - The Event VisibleBodyHeightChanged is triggered if the menu is currently open at the first height
- Add set SecondHeight - sets the SecondHeight - The Event VisibleBodyHeightChanged is triggered if the menu is currently open at the second height
- Important BugFixes!
Attachments
-
16.9 KB Views: 41
-
3.1 KB Views: 20
Last edited: