Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Initialize Scale
'Scale.SetRate(0.5)
'Activity.LoadLayout("Menu")
'Activity.Width = 100%x
'Activity.Height = 100%y
pnlMenu.Initialize("")
Activity.AddView(pnlMenu,0dip,0dip,100%x,100%y)
pnlMenu.SetBackgroundImage(LoadBitmap(File.DirAssets,"menu.png"))
'play button
btnPlay.Initialize("button_play")
btnPlay.Text="Herry"
pnlMenu.AddView(btnPlay,0,0,50%x,70%y)
'btnPlay.Bitmap=LoadBitmap(File.DirAssets,"playbutton.png")
'btnPlay.BringToFront
'Activity.AddView(btnPlay,50%x - 80%x / 2, 50%y - 40%y / 2, 80%x, 40%y)
'Scale.VerticalCenter2(pnlMenu, imgPlay,pnlMenu)
'btnPlay.SetBackgroundImage(LoadBitmap(File.DirAssets,"playbutton.png"))
'Scale.ScaleView(imgPlay)
CREATE_SLIDE_MENU
End Sub
Sub button_play_click
ToastMessageShow("you rocked the world!!!, yeah",True)
End Sub