Ticker TextView
Dependancy
com.robinhood.ticker:ticker:2.0.2
Convert View
com.robinhood.ticker.TickerView
Change ID
tickerView
OnCreate
final TickerView tickerView = findViewById(R.id.tickerView);
tickerView.setCharacterLists(TickerUtils.provideNumberList());
To set text to TickerView
You can also set text from edit text view watch video for know more
Using Direct entry-
tickerView.setText("Hello Friends");
Using Variable-
myvariable = "My Text to display";
tickerView.setText(myvariable);
Xml Customisation
android:gravity="center"
android:textColor="@color/colorPrimary"
android:textSize="50sp"
app:ticker_animationDuration="500"
You know what its means ! Apply it properly.😁
Post a Comment