Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tell me what am I doing wrong! #51

Closed
lazarusvc opened this issue May 4, 2017 · 1 comment
Closed

Tell me what am I doing wrong! #51

lazarusvc opened this issue May 4, 2017 · 1 comment

Comments

@lazarusvc
Copy link

I've implemented this into my project, but it doesn't seem to work. Can you tell me what am I doing wrong? see code below...
final TickerView tickerView = (TickerView) findViewById(R.id.tickerView); tickerView.setCharacterList(TickerUtils.getDefaultNumberList()); String[] ticker_content = {"Lorem ipsum dolor sit amet", "Lorem ipsum dolor sit amet", "Lorem ipsum dolor sit amet"}; int idx = new Random().nextInt(ticker_content.length); tickerView.setText(ticker_content[idx]);

PS: I've added the .xml view and gradle lib

@jinatonic
Copy link
Contributor

You are using setDefaultNumberList which only animates numbers, but your content is normal strings. See TickerUtils on other types of character lists or create your own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants