B4i Library [B4X] [XUI] iSD BottoMenu (with source code)

Download from Here

iSD_BottoMenu
(Update)

Author: Star-Dust
Version: 1.6
  • BottoMenu
    • Events:
      • Selected (Value As Int)
    • Fields:
      • BackGroundColor As Int
      • Position As Int
        ' set o get position
    • Functions:
      • AddMenu (CharText As String, FontName As B4XFont) As String
      • Class_Globals As String
      • Clear As String
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
        Base type must be Object
      • Initialize (Callback As Object, EventName As String) As String
      • Invalidate As String
      • IsInitialized As Boolean
        Verifica se l'oggetto sia stato inizializzato.
      • TransitionAnimated (Duration As Int, FromBmp As B4XBitmap, ToBmp As B4XBitmap, ImageView As B4XView) As ResumableSub
Video1.gif
IMG_0110.PNG
Video4.gif
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
B4X:
Private Sub Application_Start (Nav As NavigationController)
    'SetDebugAutoFlushLogs(True) 'Uncomment if program crashes before all logs are printed.
    NavControl = Nav
    Page1.Initialize("Page1")
    Page1.Title = "Page 1"
    Page1.RootPanel.Color = Colors.White
    NavControl.ShowPage(Page1)
    Page1.RootPanel.LoadLayout("Layout1")
    
    BottoMenu1.AddMenu(Chr(0xF009),XUI.CreateFontAwesome(18))
    BottoMenu1.AddMenu(Chr(0xF0CA),XUI.CreateFontAwesome(18))
    BottoMenu1.AddMenu(Chr(0xF0EC),XUI.CreateFontAwesome(18))
    BottoMenu1.AddMenu(Chr(0xF096),XUI.CreateFontAwesome(18))
    BottoMenu1.AddMenu(Chr(0xF2C0),XUI.CreateFontAwesome(18))
End Sub

Sub BottoMenu1_Selected(Value As Int)
    Log(Value)
End Sub
 

Star-Dust

Expert
Licensed User
Longtime User
I improved the code and enlarged the selection sphere. I attach the code
(Now also for B4J)

video3-gif.77650
 

Attachments

  • iSample2.zip
    113.1 KB · Views: 32

Star-Dust

Expert
Licensed User
Longtime User
Update code rel. 1.1
 

Star-Dust

Expert
Licensed User
Longtime User
Update code rel. 1.3
Video4.gif
 

Star-Dust

Expert
Licensed User
Longtime User
Update 1.41
  • Solved a bug in the animation. If another option is clicked while the animation has not yet finished, the click is ignored
 

Star-Dust

Expert
Licensed User
Longtime User
Update 1.6
 

Star-Dust

Expert
Licensed User
Longtime User
The library is now transferred, you can download it from Here
 
Top