Ok, I'm able to animate (fade out) a label using the following code... What I want to be able to do, is fade it back in... My problem is I can't figure out how to specify (programatically) how to set the "alpha" on the label to 0...
I know it's probably obvious but I'm not figuring it out (and I've searched)...
Thanks (again!)
I know it's probably obvious but I'm not figuring it out (and I've searched)...
Thanks (again!)
B4X:
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim TL As Animation
Dim Test_Label As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("A")
TL.InitializeAlpha("", 1, 0)
TL.Duration = 3000
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Trigger_Click
TL.Start(Test_Label)
Test_Label.Visible = False
End Sub