Android Question AS TabMenuAdvanced - Icons tab

Sabotto

Well-Known Member
Licensed User
I'm looking at @Alexander Stolte 's beautiful library. I don't quite understand what "type" of images I can use in tabs.
Do they have to be 512x512 images?
Can they be in color?
Can they be .ico or just .png?
For example, I wanted to use this 256x256 color png.

ico256_256.png

But it doesn't display it, a white square comes out.

B4X:
'I tried like this
AS_TabMenuAdvanced1.AddTab("Test",xui.LoadBitmap(File.DirAssets,"ico256_256.png"),xui.LoadBitmap(File.DirAssets,"UnSelectIco256_256.png"))

'and also like this
AS_TabMenuAdvanced1.GetTab(4).xTab.IconSelected = xui.LoadBitmap(File.DirAssets,"ico256_256.png")

Thanks to anyone who can clarify the matter for me and congratulations again to the author.
 

Alexander Stolte

Expert
Licensed User
Longtime User
Do they have to be 512x512 images?
Can they be in color?
Can they be .ico or just .png?
For example, I wanted to use this 256x256 color png.
it doesn't matter what size the image is, because i resize it to the required size.
'I tried like this AS_TabMenuAdvanced1.AddTab("Test",xui.LoadBitmap(File.DirAssets,"ico256_256.png"),xui.LoadBitmap(File.DirAssets,"UnSelectIco256_256.png")) 'and also like this AS_TabMenuAdvanced1.GetTab(4).xTab.IconSelected = xui.LoadBitmap(File.DirAssets,"ico256_256.png")
Every time oyu made changes, don't forget to call AS_TabMenuAdvanced1.Refresh
if it does not solve your problem, please show me the problem in an example project, thank you.
 
Upvote 0
Top