robinhood / ticker

An Android text view with scrolling text change animation
https://medium.com/robinhood-engineering/hello-ticker-20eaf6e51689
Apache License 2.0
4.38k stars 462 forks source link

Hello,I want the vertical visibility distance is larger when it scroll, What should I change? #104

Closed shixiangyu closed 5 years ago

jinatonic commented 5 years ago

this is a bit tricky, it's hard to increase visibility distance because the view is measured to a certain height. If you want larger vertical distance, you first need to change the measurement code to allow for more spacing. then you can change the onDraw method of TickerView to change the clipping boundaries when it's animating vs. static.