I've only worked with B4A for 3 days and have some problems. In an attempt to start some objects in code instead of in Designer, I wrote:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("SpiteLayout")
Dim Pile2 As Panel
Dim Card0 As ImageView
Pile2.Initialize("Pannel")
Activity.AddView(Pile2,500,100,100,100)
Pile2.Height=77
Pile2.Visible=True
Pile2.Enabled=True
Pile2.Color=Colors.red
Pile2.BringToFront
Card0.Initialize("Card_Click")
Card0.Bitmap=LoadBitmap(File.DirAssets,"kd.png")
Activity.addview(Card0,300,300,71,96)
Card0.Enabled=True
Card0.Visible=True
Card0.BringToFront
The panel and picture never showed on the emulator. However, they did show on my phone. What should I do?
An even bigger problem is the Activity title bar. When I set ShowTitle to False in Designer it goes away so I have a full 800X480 screen. When I run it in the Emulator or my phone the title comes back and pushes the bottom objects off the screen. I really need all the pixel I can get.
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("SpiteLayout")
Dim Pile2 As Panel
Dim Card0 As ImageView
Pile2.Initialize("Pannel")
Activity.AddView(Pile2,500,100,100,100)
Pile2.Height=77
Pile2.Visible=True
Pile2.Enabled=True
Pile2.Color=Colors.red
Pile2.BringToFront
Card0.Initialize("Card_Click")
Card0.Bitmap=LoadBitmap(File.DirAssets,"kd.png")
Activity.addview(Card0,300,300,71,96)
Card0.Enabled=True
Card0.Visible=True
Card0.BringToFront
The panel and picture never showed on the emulator. However, they did show on my phone. What should I do?
An even bigger problem is the Activity title bar. When I set ShowTitle to False in Designer it goes away so I have a full 800X480 screen. When I run it in the Emulator or my phone the title comes back and pushes the bottom objects off the screen. I really need all the pixel I can get.