Sub Activity_Create(FirstTime As Boolean)
' panel, label housekeeping
pnl.Initialize("")
activity.AddView(pnl,0,0,100%x,100%y)
lbl.Initialize("")
pnl.AddView(lbl,pnl.width,100,pnl.Width,50) ' start just beyond right of panel, fill entire width
lbl.Text="Some Text"
lbl.Gravity=Gravity.CENTER_HORIZONTAL
lbl.Top=(pnl.Height-lbl.Height)/2-10%y
' animation
an.InitializeTranslate("ane",0,0,-pnl.Width,0) ' and move all the way to left of panel
an.Duration=3000
an.RepeatCount=0
an.RepeatMode=an.REPEAT_REVERSE ' same result with: an.REPEAT_RESTART
an.Start(lbl)
End Sub
Sub ane_AnimationEnd
'an.Stop(lbl) <==== doesn't matter if active or not
Log("animend " & lbl.Left)
'lbl.Left=0 <==== this seems to be the only working solution
End Sub