A amiria703 Member Nov 9, 2020 #1 As I mentioned in the title, I want to change a label's text with animation. How to do that?
Erel B4X founder Staff member Licensed User Longtime User Nov 10, 2020 #2 You cannot animate the text. You can use two labels and animate them with B4XView.SetLayoutAnimated. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 10, 2020 #4 B4X: lbl2.SetLayoutAnimated(0, 100%x, lbl1.Top, lbl2.Width, lbl2.Height) lbl2.SetLayoutAnimated(1000, lbl1.Left, lbl1.Top, lbl2.Width, lbl2.Height) lbl1.SetLayoutAnimated(1000, -lbl1.Width, lbl1.Top, lbl1.Width, lbl1.Height) Make sure to declare them as B4XViews. Upvote 0
B4X: lbl2.SetLayoutAnimated(0, 100%x, lbl1.Top, lbl2.Width, lbl2.Height) lbl2.SetLayoutAnimated(1000, lbl1.Left, lbl1.Top, lbl2.Width, lbl2.Height) lbl1.SetLayoutAnimated(1000, -lbl1.Width, lbl1.Top, lbl1.Width, lbl1.Height) Make sure to declare them as B4XViews.