show image at beginning of program

Cor

Active Member
Licensed User
Longtime User
I want to show a logo at the beginning of my program

after pressing the logo it must start loading the layout

What's the best way to solve this, without stress the processor load
 

Cor

Active Member
Licensed User
Longtime User
I use now a splashPanel to load image

B4X:
splashPanel.Initialize("splashPanel")
 
 splashPanel.SetBackgroundImage(LoadBitmap(File.DirAssets,"introLogo.png"))
 Activity.AddView(splashPanel, 0, 0, 100%x, 100%y)

'here must come routine for checking splashPanel_Click

'
activity.LoadLayout("main")

Sub splashPanel_Click
  start=True
  Log(start)
End Sub
 
Upvote 0
Top