Android Question DrawBitmap on Tabstrip

Florent_78

Member
Licensed User
Dear all, I try to add bitmaps on the "page 1" on the Tabstrip but I dont know how I can select the "page 1".
The program is working if I just do it on the Main (Activity) but not on the Tabstrip.
I have tried to find solutions or examples on tutorial but I didn't.
Thank you in advance for your help.

B4X:
...
Activity.LoadLayout("Main")
TabStrip1.LoadLayout("Page1", "Température")
TabStrip1.LoadLayout("Page2", "Graphique")
TabStrip1.LoadLayout("Page3", "Portail")
...
csvMain.Initialize(Activity)
csvMain.DrawBitmap(bmpFlower,SRectFlower,DRectFlower)
csvMain.DrawBitmap(bmpPoteau_G,SRectPoteau_G,DRectPoteau_G)
csvMain.DrawBitmap(Vantail_G,SRectVantail_G,DRectVantail_G)
csvMain.DrawBitmap(bmpPoteau_D,SRectPoteau_D,DRectPoteau_D)
csvMain.DrawBitmapRotated(Vantail_D,SRectVantail_D,DRectVantail_D,180)
Activity.Invalidate
...
 

josejad

Expert
Licensed User
Longtime User
You probably have to initialize your canvas on a panel loaded in "Page1" layout instead than "Activity".
 
Upvote 0
Top