issues
search
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
Measurement optimizations and remeasure after animation completes
#19
Closed
jinatonic
closed
8 years ago
jinatonic
commented
8 years ago
Do not call
requestLayout
when the content measurement do not affect the view's measurement (e.g. when the measurements are
EXACTLY
).
Set the desired with to the target width once the animation completes.
Force re-layout after animation completes so that the width/height matches the displayed text.
Closes #15
requestLayout
when the content measurement do not affect the view's measurement (e.g. when the measurements areEXACTLY
).Closes #15