Hi,
Why I do not get the same result in TABHOST when I am using exactly the same code in 2 different projects.
Pictures exist in the two different "Files" folders.
In one project, with AddTabWithIcon I get the text + image, in other project I only get the text with larger characters and which do not contain on the same line.
Look at attach files. Thank you
Why I do not get the same result in TABHOST when I am using exactly the same code in 2 different projects.
Pictures exist in the two different "Files" folders.
In one project, with AddTabWithIcon I get the text + image, in other project I only get the text with larger characters and which do not contain on the same line.
B4X:
Dim Bmp1_scale, Bmp2_scale, Bmp1_chord, Bmp2_chord, Bmp1_modal, Bmp2_modal, Bmp1_tonalite, Bmp2_tonalite, Bmp1_quid, Bmp2_quid As Bitmap
Bmp1_scale = LoadBitmap(File.DirAssets, "gammes1.png")
Bmp2_scale = LoadBitmap(File.DirAssets, "gammes2.png")
Bmp1_chord = LoadBitmap(File.DirAssets, "accords1.png")
Bmp2_chord = LoadBitmap(File.DirAssets, "accords2.png")
Bmp1_modal = LoadBitmap(File.DirAssets, "modal1.png")
Bmp2_modal = LoadBitmap(File.DirAssets, "modal2.png")
Bmp1_tonalite = LoadBitmap(File.DirAssets, "tonalite1.png")
Bmp2_tonalite = LoadBitmap(File.DirAssets, "tonalite2.png")
Bmp1_quid = LoadBitmap(File.DirAssets, "quid1.png")
Bmp2_quid = LoadBitmap(File.DirAssets, "quid2.png")
TabHost1.AddTabWithIcon ("Scales", Bmp1_scale, Bmp2_scale, "Main")
TabHost1.AddTabWithIcon ("Chord", Bmp1_chord, Bmp2_chord, "Chords")
TabHost1.AddTabWithIcon ("Modal", Bmp1_modal, Bmp2_modal, "Modal")
TabHost1.AddTabWithIcon ("Tons", Bmp1_tonalite, Bmp2_tonalite, "tonalite")
TabHost1.AddTabWithIcon ("Quid", Bmp1_quid, Bmp2_quid, "Quid")
Look at attach files. Thank you