Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
bctoast.Initialize(toastPanel) ' toastPanel is the toast parent view
End If
End Sub
Sub ShowBCToast(message As String, fontcolor As String, backgrcolor As Int)
' Example for the color => "color=#ff00ff" Or "color=White"
bctoast.DurationMs = 4000
bctoast.PaddingTopBottom = 10dip
bctoast.VerticalCenterPercentage = 50
bctoast.pnl.Color = backgrcolor
bctoast.Show($"[Alignment=Center][TextSize=16][b][${fontcolor}]${message}[/color][/b][/TextSize][/Alignment]"$)
End Sub