Android Question [SOLVED] It is possible to create and show how to update or add menu items at runtime to a TabStrip

desof

Well-Known Member
Licensed User
Longtime User

Erel

B4X founder
Staff member
Licensed User
Longtime User


1. You need to use CSBuilder to put an image in the tab labels.
2. Update the label with:
B4X:
Dim lbl As Label = GetAllTabLabels(TabStrip1).Get(1) '1 = tab #2
Dim cs As CSBuilder
lbl.Text = cs.Initialize.Image(AddBadgeToIcon(cart, 5), cart.Width, cart.Height, False).PopAll
cart is a global bitmap.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…