Hi guys....
Back again... I think...
Well, after the firsts hours trying to figure out why a simple code didnt work, and finaly seeing where I went wrong... I have another puzzling..."nothing happens" situation...
All works according to what I have planned in my head, except for the Label...That just isnt there!
I have tried everything I could remember, even replacing it with another view, adding it to the Activity itself instead of the Panel, even giving it a black bacground color so that I could see it... No joy!!
So please, before I loose the few grey cells I still have over this... Where it the world is my label going????
Back again... I think...
Well, after the firsts hours trying to figure out why a simple code didnt work, and finaly seeing where I went wrong... I have another puzzling..."nothing happens" situation...
B4X:
'Initialize 3 Panels and 1 Label, No events
Panel0.Initialize("")
Panel1.Initialize("")
Panel2.Initialize("")
Label0.Initialize("")
'Add Panels to the Calling Activity
Activity.AddView(Panel0,0,0,100%x,100%y)
Activity.AddView(Panel1,0,0,0,0)
Activity.AddView(Panel2,0,0,0,0)
'Re-size the Panels to obtain the desired efect
Panel1.Width = 100%x - 10dip
Panel1.Height = 25%y
Panel1.Top = 30%y
Panel1.Left = 5dip
Panel2.Width = 60%x
Panel2.Height = 20%y
Panel2.Top = Panel1.Top + 20dip - Panel2.Height
Panel2.Left = Panel1.Left + 40%x - 5dip
'Set The Color and Transparency of the Background Panel
Panel0.Color = Colors.ARGB(180,10,10,10)
'Set the Image for the Main Panel
SetNinePatchDrawable(Panel1,"placard")
'Set the Image for the Secondary Panel
Dim Img As Bitmap
Img.Initialize(File.DirAssets,"Tribus.png")
Panel2.SetBackgroundImage(Img)
'Add Label to Main Panel
Panel1.AddView(Label0,500dip,500dip,500dip,500dip)
Label0.Color =Colors.ARGB(255,0,0,0)
Label0.Width=Panel1.Width
Label0.Height=Panel1.Height
Label0.Left = Panel1.Left
Label0.Top = Panel1.Top
All works according to what I have planned in my head, except for the Label...That just isnt there!
I have tried everything I could remember, even replacing it with another view, adding it to the Activity itself instead of the Panel, even giving it a black bacground color so that I could see it... No joy!!
So please, before I loose the few grey cells I still have over this... Where it the world is my label going????