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

Change the view bounds to match the parent #65

Closed Tokimu closed 5 years ago

Tokimu commented 7 years ago

Is it possible to change the view bounds of the ticker so it matches the parent? The problem is that i can see animation starts just a little above the the ticker, not from the top of the view. i have set ticker to match the parent and gravity to center, the ticker pop up in the center but the view doesn't match the parent, more like wrap content.

jinatonic commented 6 years ago

Sorry for the late reply. I'm not too sure of the problem you are describing. Is the width or height not being set to match_parent? A video demonstrating the effect would be awesome.

Tokimu commented 6 years ago

Next week i will try to post the video. Anyway i was trying to set the ticker in a cardView, i set match_parent and centerInParent=true for it, unfortunately the dropping numbers didn't drop from the edge of the cardView (like i expected) but from the bounds of the ticker.