Hi everyone
My goal is to add a png logo to the menu bar. I experimentally moved the logo to the center using empty spaces - see code line 6:
Is there any other method to add a png file to the menu bar in the center?
The image is barely visible, and trying to resize it didn't produce the desired results. My original png file is 4084 x 2534 pixels (156KB), so it's large, and in the menu, you practically have to look at it through a magnifying glass.
Does anyone have any ideas?
My goal is to add a png logo to the menu bar. I experimentally moved the logo to the center using empty spaces - see code line 6:
my menu with png logo at center:
Dim mi As B4AMenuItem = B4XPages.AddMenuItem(Me, "2")
mi.AddToBar = True
'mi.Bitmap = xui.LoadBitmapResize(File.DirAssets, "blue_01A.png", 129, 80, False)
mi.Bitmap = xui.LoadBitmap(File.DirAssets, "blue.png")
mi = B4XPages.AddMenuItem(Me, " ")
mi.AddToBar = True
mi = B4XPages.AddMenuItem(Me, "Setings")
mi.AddToBar = True
Is there any other method to add a png file to the menu bar in the center?
The image is barely visible, and trying to resize it didn't produce the desired results. My original png file is 4084 x 2534 pixels (156KB), so it's large, and in the menu, you practically have to look at it through a magnifying glass.
Does anyone have any ideas?
Last edited: