Hi,
I have an activity with 2 buttons and 1 panel.
The app must switch the orientation to vertical.
But before everything is in position, I see the 2 buttons somewhere on the screen, maybe for just 1/4 second.
For me this is not important, but there are customers and investors who think different ...
I have an activity with 2 buttons and 1 panel.
The app must switch the orientation to vertical.
But before everything is in position, I see the 2 buttons somewhere on the screen, maybe for just 1/4 second.
For me this is not important, but there are customers and investors who think different ...
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Kamera")
Btnclick.Visible=False
Btngps.Visible=False
phon.setscreenorientation (0)
Panel1.Left=0
Panel1.Top=0
Panel1.Width=75%x
Panel1.Height=100%y
Btnclick.Color=Main.btncolor
Btnclick.TextColor=Main.btntxtcolor
Btnclick.Text="Klick"
Btnclick.Left=Panel1.Width + 10dip
Btnclick.Top=0%y
Btnclick.Width=100%x - Panel1.Width - 20dip
Btnclick.Height=20%y
Btngps.Color=Main.btncolor
Btngps.TextColor=Main.btntxtcolor
Btngps.Width=100%x - Panel1.Width - 20dip
Btngps.Top=100%y-Btngps.Height
Btngps.Left=Panel1.Width + 10dip
Btngps.Text="Warte auf" & CRLF & "GPS-Signal"
Btnclick.Visible=True
Btngps.Visible=True
End Sub