Sub ShowCustomToast(act As Activity, txt As Object, LongDuration As Boolean, BackgroundColor As Int, TxtColor As Int)
Private toast As BCToast
toast.Initialize(act)
Dim duration As Int
If LongDuration Then duration = 4000 Else duration = 2000
toast.DurationMs = duration
toast.DefaultTextColor = TxtColor
toast.pnl.Color = BackgroundColor
toast.Show($"[TextSize=15][Alignment=Center]${txt}[/Alignment][/TextSize]"$)
End Sub