[B4X] [XUI] AS Tab Menu (Bottom Menu/Navigation)

Alexander Stolte

Expert
Licensed User
Longtime User
It is the first version with badges, feedback is now important, especially with the variant where only text can be seen

1.05
  • Adds a short description about a property
  • Add get and set Badge_Visible - shows or hide a badge on a tab

    • Screenshot_20200325-161959.jpg

    • Screenshot_20200325-162119.jpg
      Screenshot_20200325-162212.jpg
      Screenshot_20200325-162239.jpg
  • Add get and set Badge_Height - set the size of the badge
  • Add set Badge_Text - sets the badge number, set it to -1 to have only the color
  • Add get Badge_getLabel - gets the badge label, to modify it to your own
  • Add get and set Badge_Color - gets or sets a badge color
  • Add set Badge_setVisibleEasy - shows the badge with all important parameters to save lines of code
 

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
Hi,
I am using bitmaps instead of font text for the images and the text is too close to the image.
Is there a standard image size I should be using?
1585240425431.png


The images are all 100pixels square
B4X:
    BtmMenu.AddTab(Globals.gcol_panelback,"Home",LoadBitmap(File.DirAssets,"menu_home.png"),"")
    BtmMenu.AddTab(Globals.gcol_panelback,"Bookings",LoadBitmap(File.DirAssets,"menu_booking.png"),"")
    BtmMenu.AddTab(Globals.gcol_panelback,"Messages",LoadBitmap(File.DirAssets,"menu_messages.png"),"")
    BtmMenu.AddTab(Globals.gcol_panelback,"Account",LoadBitmap(File.DirAssets,"menu_account.png"),"")
 

Jorge M A

Well-Known Member
Licensed User
Alexander, Would it be possible to obtain the height of the mBase panel, something like "ASTabMenu_horizontal.Height"?

EDIT: I'm testing example in B4J
 
Top