Hi,
I have the following code copied from the tabhost example (including pictures and layout files).
But for some reason I never get a tab with an icon??? See attached example
I have the following code copied from the tabhost example (including pictures and layout files).
B4X:
Activity.LoadLayout("main")
Dim bmp1, bmp2 As Bitmap
bmp1 = LoadBitmap(File.DirAssets, "ic.png")
bmp2 = LoadBitmap(File.DirAssets, "ic_selected.png")
TabHost1.AddTabWithIcon("Name", bmp1, bmp2, "page1") 'load the layout file of each page
TabHost1.AddTab("Color", "page2")
TabHost1.AddTab("Animal", "page3")
But for some reason I never get a tab with an icon??? See attached example