I am trying to set up a simple animation in an Android activity where when the user swipes over an area from right to left, a textview at the top of the activity will slide off the screen to the left, then it will slide in from the right with new text.
Before:
---------------
- First Text -
---------------
Animation Part 1:
---------------
-st Text -
---------------
Animation Part 2:
---------------
- Second T-
---------------
After:
---------------
- Second Text -
---------------
When I try to use two separate animations, and change the text in between, the second animation always overrides the first one and the first one is never seen. Even adding a StartOffset to the second animation will not work.
Any suggestions would be helpful. Thank you.
Why not simplify things and just use two textviews? just set the “offscreen” textview with the secondary text and it will nicely scroll into view without having to worry about the sleight of hand you’re working on now 🙂