'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