When calling ticker.setText("value") for the very first time, Ticker tries to not animate this call by checking if getWidth == 0. I think this check is currently broken.
I'm proposing two things:
1) add a getText() method that returns the last value passed to setText() or empty CharSequence if never set (same behavior as TextView)
2) the 1 argument setText() method should pass !getText().isEmpty() for the animate argument to the 2 argument constructor.
When calling ticker.setText("value") for the very first time, Ticker tries to not animate this call by checking if getWidth == 0. I think this check is currently broken.
I'm proposing two things:
1) add a getText() method that returns the last value passed to setText() or empty CharSequence if never set (same behavior as TextView) 2) the 1 argument setText() method should pass
!getText().isEmpty()
for theanimate
argument to the 2 argument constructor.