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

Support baseline alignment #60

Open damianw opened 7 years ago

damianw commented 7 years ago

TextViews are often baseline-aligned to other views. TickerView should also support layout_alignBaseline and other similar layout attributes.

claytonwells commented 5 years ago

Hi

Is there any plans to add _res-auto:layout_constraintBaselinetoBaselineOf support to the library?

Mdany commented 7 months ago

ConstraintLayout support layout_constraintBaseline_toBaselineOf,override getBaseline in tickerVIew class. @Override public int getBaseline() { return (int) metrics.getCharBaseline(); }