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

java.lang.IllegalStateException: Need to call #setCharacterLists first #95

Closed akshaychopra96 closed 6 years ago

akshaychopra96 commented 6 years ago

I have initialised CharacterList in onCreate() method . It is still giving the following error:

Caused by: java.lang.IllegalStateException: Need to call #setCharacterLists first. at com.robinhood.ticker.TickerColumnManager.setText(TickerColumnManager.java:71) at com.robinhood.ticker.TickerView.setText(TickerView.java:299) at com.robinhood.ticker.TickerView.init(TickerView.java:180)

jinatonic commented 6 years ago

Are you using the android:text attribute in XML? if so, there is a known issue where it'll crash on initialization.