B4A Library [B4X] [XUI] AS BottomActionMenu

This view combines 2 views and makes it quick and easy to let the user make an action.

You need:
I spend a lot of time in creating views, like this and to create a high quality view cost a lot of time. If you want to support me and further views, then you can do it here by Paypal or with a coffee. :)

LpWaTdPiuOqDCf12Xf5ZOQdP1pi8yEFGlUiUQTJzhQGYcRZMYY.jpeg
rCrobjwnrDzadEOh5ridMruh5IrZt0n2dKzQprEYv8gJHOSv9f.jpeg
ezgif.com-resize (4).gif


Simple Example:
    BottomActionMenu.Initialize(Me,"BottomDatePicker",Root)

    BottomActionMenu.AddItem("WhatsApp",BottomActionMenu.FontToBitmap(Chr(0xF232),False,30,BottomActionMenu.TextColor),"")
    BottomActionMenu.AddItem("Twitter",BottomActionMenu.FontToBitmap(Chr(0xF099),False,30,BottomActionMenu.TextColor),"")
    BottomActionMenu.AddItem("Instagram",BottomActionMenu.FontToBitmap(Chr(0xF16D),False,30,BottomActionMenu.TextColor),"")
    BottomActionMenu.AddItem("Snapchat",BottomActionMenu.FontToBitmap(Chr(0xF2AC),False,30,BottomActionMenu.TextColor),"")
    BottomActionMenu.AddItem("YouTube",BottomActionMenu.FontToBitmap(Chr(0xF16A),False,30,BottomActionMenu.TextColor),"")
    BottomActionMenu.AddItem("Stackoverflow",BottomActionMenu.FontToBitmap(Chr(0xF16C),False,30,BottomActionMenu.TextColor),"")

    BottomActionMenu.ShowPicker
Dark Example:
    BottomActionMenu.Initialize(Me,"BottomActionMenu",Root)
 
    BottomActionMenu.AddItem("WhatsApp",BottomActionMenu.FontToBitmap(Chr(0xF232),False,30,BottomActionMenu.TextColor),"")
    BottomActionMenu.AddItem("Twitter",BottomActionMenu.FontToBitmap(Chr(0xF099),False,30,BottomActionMenu.TextColor),"")
    BottomActionMenu.AddItem("Instagram",BottomActionMenu.FontToBitmap(Chr(0xF16D),False,30,BottomActionMenu.TextColor),"")
    BottomActionMenu.AddItem("Snapchat",BottomActionMenu.FontToBitmap(Chr(0xF2AC),False,30,BottomActionMenu.TextColor),"")
    BottomActionMenu.AddItem("YouTube",BottomActionMenu.FontToBitmap(Chr(0xF16A),False,30,BottomActionMenu.TextColor),"")
    BottomActionMenu.AddItem("Stackoverflow",BottomActionMenu.FontToBitmap(Chr(0xF16C),False,30,BottomActionMenu.TextColor),"")
 
    BottomActionMenu.ShowPicker
 
    BottomActionMenu.Color = xui.Color_ARGB(255,32, 33, 37)
    BottomActionMenu.TextColor = xui.Color_White
Light Example:
    BottomActionMenu.Initialize(Me,"BottomActionMenu",Root)
 
    BottomActionMenu.Color = xui.Color_White
    BottomActionMenu.TextColor = xui.Color_Black
 
    BottomActionMenu.AddItem("WhatsApp",BottomActionMenu.FontToBitmap(Chr(0xF232),False,30,BottomActionMenu.TextColor),"")
    BottomActionMenu.AddItem("Twitter",BottomActionMenu.FontToBitmap(Chr(0xF099),False,30,BottomActionMenu.TextColor),"")
    BottomActionMenu.AddItem("Instagram",BottomActionMenu.FontToBitmap(Chr(0xF16D),False,30,BottomActionMenu.TextColor),"")
    BottomActionMenu.AddItem("Snapchat",BottomActionMenu.FontToBitmap(Chr(0xF2AC),False,30,BottomActionMenu.TextColor),"")
    BottomActionMenu.AddItem("YouTube",BottomActionMenu.FontToBitmap(Chr(0xF16A),False,30,BottomActionMenu.TextColor),"")
    BottomActionMenu.AddItem("Stackoverflow",BottomActionMenu.FontToBitmap(Chr(0xF16C),False,30,BottomActionMenu.TextColor),"")
 
    BottomActionMenu.ShowPicker
AS_BottomActionMenu
Author: Alexander Stolte
Version: 1.00

  • AS_BottomActionMenu
    • Events:
      • ItemClick (Index As Int, Value As Object)
    • Fields:
      • Tag As Object
    • Functions:
      • AddItem (Text As String, Icon As B4XBitmap, Value As Object) As String
      • Class_Globals As String
      • FontToBitmap (text As String, IsMaterialIcons As Boolean, FontSize As Float, color As Int) As B4XBitmap
      • getColor As Int
      • getTextColor As Int
      • Initialize (Callback As Object, EventName As String, Parent As B4XView) As String
        Initializes the object. You can add parameters to this method if needed.
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • setColor (Color As Int) As String
      • setTextColor (Color As Int) As String
      • ShowPicker
    • Properties:
      • Color As Int
      • TextColor As Int
Changelog
  • 1.00
    • Release
Have Fun :)
 

Attachments

  • AS BottomActionMenu Example.zip
    177.9 KB · Views: 102
  • AS_BottomActionMenu.b4xlib
    2.4 KB · Views: 97
Last edited:
Top