[B4X] [XUI] AS BottomActionSheet
This view makes it quick and easy to let the user make an action. You need: AS_DraggableBottomCard 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...
www.b4x.com
In this example I will show you how you can add a small icon to an item and customize it to your needs.
A small icon is an icon that can be placed before or after the text, e.g. it symbolizes that this item is only available in the premium version.
Add Item with a small icon
You can use the new
AddItem2
function to add an item with a small icon.
B4X:
BottomActionSheet.AddItem2("Item #4",Null,BottomActionSheet.FontToBitmap(Chr(0xE897),True,25dip,xui.Color_White),4)
Customize
You can specify the position, size and a gap of the small icon.
You can only customize it before the item is added.
B4X:
BottomActionSheet.ItemSmallIconProperties.HorizontalAlignment = BottomActionSheet.HorizontalAlignment_AfterText
BottomActionSheet.ItemSmallIconProperties.VerticalAlignment = BottomActionSheet.VerticalAlignment_Top
BottomActionSheet.ItemSmallIconProperties.LeftGap = 5dip
BottomActionSheet.ItemSmallIconProperties.WidthHeight = 15dip