I asked a question quite some time ago which was never really resolved and I'm looking at it again now. Using the animation library can give jerky results, particularly on older/ slower devices. In this example the text 'jumps' to varying degrees according to what device is used:
It appears that there are two type of animation in Android, View and Property. The animation library seems to use View animation.
Has anyone used Property animation? Are there any examples in B4A? Is it likely that it would improve the smoothness of animation over View animation?
Thanks
B4X:
Sub Globals
Dim animate1 As Animation
Dim SText As EditText
End Sub
Sub Activity_Create(FirstTime As Boolean)
SText.Initialize("")
SText.Text = "the quick brown fox jumps over the lazy dog"
SText.TextSize = 150dip
Activity.AddView(SText,800dip,10dip, 4500dip,300dip)
animate1.InitializeTranslate("animations",0,0,-SText.Width,0)
animate1.duration = 10000
animate1.RepeatCount= -1
animate1.RepeatMode = animate1.REPEAT_REVERSE
animate1.Start(SText)
End Sub
Has anyone used Property animation? Are there any examples in B4A? Is it likely that it would improve the smoothness of animation over View animation?
Thanks