Dim logoBox As ImageView
logoBox.Initialize("")
logoBox.Bitmap = LoadBitmap(File.DirAssets, "logo.png")
#if B4a
logoBox.Gravity = Gravity.CENTER
#else if B4i
'logoBox.Gravity = Gravity.CENTER (this goes wrong)
#End If
Root.AddView(logoBox, 0, 0, 100%x, 200dip)