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

elitevenkat

Active Member
Licensed User
Longtime User
Hi
Thanks for the suggestion. How about disabling / enabling a tab ? can u please guide me ?
 

Alexander Stolte

Expert
Licensed User
Longtime User
Update
  • 1.13
    • Add VisibleAt -Shows or Hide a tab
    • Add Support for Icons or Text mixed
    • Add TabStripMode - if true, then the underline width/height is the full tab
    • Example is now based on B4XPages
Hide a Tab:
ASTabMenu_horizontal.VisibleAt(1,False)

How to use icons or text at the same time?
B4X:
ASTabMenu_horizontal.AddTab(xui.Color_ARGB(255,39, 174, 97),"",ASTabMenu_horizontal.FontToBitmap(Chr(0xF015),False,30,xui.Color_White),"")
ASTabMenu_horizontal.AddTab(xui.Color_ARGB(152,39, 174, 97),"Test1",Null,"")
  1. Set TabStyle to TextIcon
  2. if you want a icon then write "" on the text parameter
    1. if you want text then write Null to the icon parameter
 

angel_

Well-Known Member
Licensed User
Longtime User
I've noticed that if you have tabs with icons and others with icons+text, the latter are overlapped, I don't know if it's a bug or this is not possible to do.

Another issue is that if the tab text is long in B4A it doesn't truncate the text to one line
 

Alexander Stolte

Expert
Licensed User
Longtime User
I've noticed that if you have tabs with icons and others with icons+text, the latter are overlapped, I don't know if it's a bug or this is not possible to do.
An image would be nice. Or make sure that you have read this:
Another issue is that if the tab text is long in B4A it doesn't truncate the text to one line
i have fixed it, but the problem is, now you need on B4A the Reflection lib. too, only for this...
 

Alessandro71

Well-Known Member
Licensed User
Longtime User
How to correctly size the FontToBitmap size parameter to make sure the icon is the right dimension?
 

Kope

Active Member
Licensed User
Hi I keep getting this error using this lib on b4i


Copying updated assets files (1)
Application_Start
Error occurred on line: 128 (ASTabMenu)
Expected: UIView, object type: B4ILayoutValues
Stack Trace: (
CoreFoundation E2D6A76B-6879-31A3-8168-DF49F94E17CD + 1222248
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation E2D6A76B-6879-31A3-8168-DF49F94E17CD + 133720
LED MUSIC -[B4IObjectWrapper setObject:] + 276
LED MUSIC -[B4XViewWrapper setObject:] + 152
LED MUSIC +[B4IObjectWrapper createWrapperbject:] + 108
LED MUSIC -[b4i_dashboard _show] + 1068
LED MUSIC -[b4i_main _application_start:] + 2928
CoreFoundation E2D6A76B-6879-31A3-8168-DF49F94E17CD + 1247424
CoreFoundation E2D6A76B-6879-31A3-8168-DF49F94E17CD + 6768
LED MUSIC +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
LED MUSIC -[B4IShell runMethod:] + 448
LED MUSIC -[B4IShell raiseEventImpl:method:args::] + 2172
LED MUSIC -[B4IShellBI raiseEvent:eventarams:] + 1580
LED MUSIC __33-[B4I raiseUIEvent:eventarams:]_block_invoke + 60
libdispatch.dylib 361DA09A-E7CE-30EB-8DFC-9D9AF9DE4A0A + 371112
libdispatch.dylib 361DA09A-E7CE-30EB-8DFC-9D9AF9DE4A0A + 374052
libdispatch.dylib 361DA09A-E7CE-30EB-8DFC-9D9AF9DE4A0A + 255740
CoreFoundation E2D6A76B-6879-31A3-8168-DF49F94E17CD + 689852
CoreFoundation E2D6A76B-6879-31A3-8168-DF49F94E17CD + 669072
CoreFoundation CFRunLoopRunSpecific + 424
GraphicsServices GSEventRunModal + 160
UIKitCore UIApplicationMain + 1932
LED MUSIC main + 124
libdyld.dylib 0CB11832-70AD-3EC6-A191-AFB85E3BF348 + 6384
)
 

Knoppi

Active Member
Licensed User
Longtime User
hi Alexander,
please add the Reflection Lib in the Manifest.txt (v1.16)
INI:
B4A.DependsOn=XUI,BitmapCreator,Reflection

otherwise i get an error message in the example
Code:
Unknown type: reflector
Are you missing a library reference?
 

Alexander Stolte

Expert
Licensed User
Longtime User
I saw that I had not published 3 updates...
Update
  • 1.20
    • Add get/set HaloDuration
    • Add setBadge_setLeftPadding
    • B4I Better handling of icons - looks now better
    • B4A and B4J The view can now also have round corners - added SetCircleClip
      • on B4J you need to set setCornerRadius
    • B4A and B4I New Icon Tint Function, the quality of icons with a new color is now better
    • B4A and B4I BitmapCreator is no longer required
 

Rubsanpe

Active Member
Licensed User
Hi. Very good work. I can't see "B4A and B4J The view can now also have round corners - added SetCircleClip" at this 1.20 version. Not in designer and not in methods.

Rubén
 

Alexander Stolte

Expert
Licensed User
Longtime User
Cookies are required to use this site. You must accept them to continue using the site. Learn more…