i am trying to use the tabhost view in my app and i am creating 3 pages in activity create
but i dont know why the tabs are added but without an icon.
this is my code:
B4X:
Dim p1ic1,p1ic2,p2ic1,p2ic2,p3ic1,p3ic2 As Bitmap
p1ic1 = LoadBitmap(File.DirAssets,"p1ic1.png")
p1ic2 = LoadBitmap(File.DirAssets,"p1ic2.png")
p2ic1 = LoadBitmap(File.DirAssets,"p2ic1.png")
p2ic2 = LoadBitmap(File.DirAssets,"p2ic2.png")
p3ic1 = LoadBitmap(File.DirAssets,"p3ic1.png")
p3ic2 = LoadBitmap(File.DirAssets,"p3ic2.png")
TabHost1.AddTabWithIcon("זמנים ",p1ic1,p1ic2,"page1")
TabHost1.AddTabWithIcon("תפילות ",p2ic1,p2ic2,"page2")
TabHost1.AddTabWithIcon("הגדרות ",p3ic1,p3ic2,"page3")
am i doing something wrong?
Edit: found a thread where @Erel allready said that:
Starting from Android 4 the icon will only appear if there is no text.
another question, because i am adding a new tab and not edit an existing tab should i put that code only if FirstTime True??