robinhood/ticker ? reverse-engineered prompt

Reverse engineered prompt

Build me an Android text component that makes text change with a smooth rolling animation, kind of like an odometer. I want to be able to drop it into an app like a normal TextView, set the text from code, and have the old and new characters scroll nicely instead of just swapping instantly.

It should handle changing between numbers and letters, including when the text gets longer or shorter, like going from 9999 to 10000. Let me configure things like text color, size, typeface, gravity, animation speed, and the scrolling direction from XML or code. For character changes, let me provide the list of allowed characters so the animation can move in the right order and wrap around when that makes sense.

Please include a simple sample screen showing it in action. If you need to, look up the current Android docs online so the setup and best practices are up to date.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab