Private toast As BCToast
Dim xui As XUI
...
Private pnlMain As Panel
...
' Setup Custom Toast Message
toast.Initialize(Activity)
toast.VerticalCenterPercentage = 65
toast.pnl.Width = Activity.Width - 100dip
toast.BB1.TextEngine.Initialize(Activity)
toast.BB1.WordWrap = True
toast.BB1.TextEngine.CustomFonts.Put("normal",xui.CreateFont(Typeface. _
CreateNew(Typeface.SERIF, Typeface.STYLE_NORMAL), 10))
...
' The maximum width = the width of the parent view. You can add it to a panel
' instead of the root view and make it thinner.
toast.pnl.Color = Color
toast.DurationMs = Duration
toast.MaxHeight = 100dip
toast.Show("[Alignment=Center][img FileName=SmallKanga.png width=24 vertical=12/][/Alignment]" & _
"[Font=normal] [TextSize=14][Color=" & TextColor & "][Alignment=Left]" & CRLF & Text & _
"[/Alignment][/Color][/TextSize][/Font]")