Private Sub CreateFABarImg(sFile As String, callback As String, tag As Object) As BarButton
Dim bb As BarButton
Dim b As ImageView
b.Initialize(callback)
b.ContentMode = b.MODE_FIT
b.Bitmap = LoadBitmap(File.DirAssets, sFile)
b.Tag = tag
Dim pnl As B4XView = xui.CreatePanel("")
pnl.SetLayoutAnimated(0, 0, 0, 35dip, 35dip)
pnl.AddView(b, 0, 0, pnl.Width, pnl.Height)
pnl.SetColorAndBorder(xui.Color_Transparent, 0, xui.Color_Transparent, pnl.Height / 2)
bb.InitializeCustom(pnl)
Return bb
End Sub