I finally get Pause and Resume to manage the views on a screen rotation but now ImageVeiw2 does not display when the app starts up. (Because of the last line in Resume).
I read something about Designer Scripts but since Sub_Resume is the last thing that happens the problem remains.
How can I get ImageVeiw2 to display at startup?
thanks for all pointers.
B4X:
Sub Process_Globals
Public VisiBL As Boolean
Public notVisiBL As Boolean
End Sub
Sub Activity_Resume
Label1.Visible = VisiBL
ImageView1.Visible=VisiBL
ImageView2.Visible = notVisiBL ' This stops ImageView2 being visible on startup only.
End Sub
Sub Activity_Pause (UserClosed As Boolean)
If Label1.Visible = True Then
VisiBL = True
notVisiBL = False
Label1.Visible = VisiBL
ImageView1.Visible = VisiBL
ImageView2.Visible = notVisiBL
Else
VisiBL = False
notVisiBL = True
Label1.Visible = notVisiBL
ImageView1.Visible = notVisiBL
ImageView2.Visible = VisiBL
End If
End Sub
How can I get ImageVeiw2 to display at startup?
thanks for all pointers.