All Projects β†’ robinhood β†’ Ticker

robinhood / Ticker

Licence: apache-2.0
An Android text view with scrolling text change animation

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Ticker

Teammate Android
A Team Management app for creating tournaments and games for various sports
Stars: ✭ 116 (-97.23%)
Mutual labels:  android-animation, android-ui
Audio Visualizer Android
🎡 [Android Library] A light-weight and easy-to-use Audio Visualizer for Android.
Stars: ✭ 581 (-86.15%)
Mutual labels:  android-animation, android-ui
Confetti
An Android particle system library for displaying confetti!
Stars: ✭ 1,194 (-71.53%)
Mutual labels:  android-animation, android-ui
Wiggle
An Android helper library for delayed scrolling
Stars: ✭ 179 (-95.73%)
Mutual labels:  android-animation, android-ui
Konfetti
Celebrate more with this lightweight confetti particle system 🎊
Stars: ✭ 2,278 (-45.68%)
Mutual labels:  android-animation, android-ui
VectorIntegerView
Animated integer on Android. https://habr.com/post/420919/
Stars: ✭ 17 (-99.59%)
Mutual labels:  android-ui, android-animation
Bottomsheet
BottomSheet dialog library for Android
Stars: ✭ 219 (-94.78%)
Mutual labels:  android-animation, android-ui
android-gallery
Shared element transition example with RecyclerView and ViewPager.
Stars: ✭ 38 (-99.09%)
Mutual labels:  android-ui, android-animation
Stacklayoutmanager
customized layoutmanager,let item pile up like stackview/η±»δΌΌζœ€ηΎŽζœ‰η‰©ε‘η‰‡ε †ε ζ•ˆζžœ
Stars: ✭ 343 (-91.82%)
Mutual labels:  android-ui
Pudding
🌟 Pudding use WindowManager(don't need request permission) to pull down a view that are displayed on top their attached window
Stars: ✭ 371 (-91.15%)
Mutual labels:  android-ui
Expenso
πŸ“Š A Minimal Expense Tracker App built to demonstrate the use of modern android architecture component with MVVM Architecture
Stars: ✭ 325 (-92.25%)
Mutual labels:  android-ui
Doublelift
πŸ¦‹ Expands and collapses a layout horizontally and vertically sequentially.
Stars: ✭ 343 (-91.82%)
Mutual labels:  android-ui
Loginui Android
Login User Interface in android with innovative, beautiful and creative background πŸ˜ŠπŸ˜ŠπŸ˜‰
Stars: ✭ 374 (-91.08%)
Mutual labels:  android-ui
Fastadapter
The bullet proof, fast and easy to use adapter library, which minimizes developing time to a fraction...
Stars: ✭ 3,512 (-16.26%)
Mutual labels:  android-ui
Material Progressview
πŸ”₯A beautiful, gradual and simple used progress view for android.
Stars: ✭ 406 (-90.32%)
Mutual labels:  android-ui
Oneadapter
A Viewholderless Adapter for RecyclerView, who supports builtin diffing, states (paging, empty...), events (clicking, swiping...), and more.
Stars: ✭ 321 (-92.35%)
Mutual labels:  android-ui
Proswipebutton
A swipe button for Android with a circular progress bar for async operations
Stars: ✭ 319 (-92.39%)
Mutual labels:  android-ui
Avatarview
A circular Image View with a lot of perks. Including progress animation and highlight state with borders and gradient color.
Stars: ✭ 429 (-89.77%)
Mutual labels:  android-ui
Drawer Behavior
Drawer behavior is a library that provide an extra behavior on drawer, such as, move view or scaling view's height while drawer on slide.
Stars: ✭ 394 (-90.61%)
Mutual labels:  android-ui
Themed Toggle Button Group
Customisable toggle buttons inside a FlexboxLayout.
Stars: ✭ 357 (-91.49%)
Mutual labels:  android-ui

Migrating to version 2

There are some breaking API changes introduced in ticker 2.0. Please refer to the 2.0 migration doc.

What is Ticker?

Ticker is a simple Android UI component for displaying scrolling text. Think about how an odometer scrolls when going from one number to the next, that is similar to what Ticker does. The Ticker handles smooth animations between strings and also string resizing (e.g. animate from "9999" to "10000").

You can specify how the animations proceed by defining an array of characters in order. Each character displayed by Ticker is controlled by this array which dictates how to animate from a starting character to a target character. For example, if you just use a basic ASCII character list, when animating from 'A' to 'Z', it will go from 'A' -> 'B' -> ... 'Z'. We will perform wrap-around animation when it's faster (e.g. 'Z' to 'A' will just animate 'Z' -> 'A').

Getting started

Add the ticker dependency to your build.gradle.

implementation 'com.robinhood.ticker:ticker:2.0.4'

Usage

Define the TickerView in XML:

<com.robinhood.ticker.TickerView
    android:id="@+id/tickerView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />

Then add the character array to specify the animation style:

final TickerView tickerView = findViewById(R.id.tickerView);
tickerView.setCharacterLists(TickerUtils.provideNumberList());

That's it! Now you can call setText to display your data.

Customization

We currently support a fairly limited subset of customizations at the moment so please let us know what new features / APIs you need exposed for your use-case and we'll consider it for future releases (or of course feel free to fork!).

You can customize the looks and feels of the TickerView via XML:

android:gravity="center"
android:textColor="@color/colorPrimary"
android:textSize="16sp"
app:ticker_animationDuration="1500"
app:ticker_preferredScrollingDirection="any"

Or Java:

tickerView.setTextColor(textColor);
tickerView.setTextSize(textSize);
tickerView.setTypeface(myCustomTypeface);
tickerView.setAnimationDuration(500);
tickerView.setAnimationInterpolator(new OvershootInterpolator());
tickerView.setGravity(Gravity.START);
tickerView.setPreferredScrollingDirection(TickerView.ScrollingDirection.ANY);

For the full list of XML attributes that we support, please refer to the attrs file.

Performance

We decided to extend from the base View class and achieve everything by drawing directly onto the canvas. The primary benefit from this is having full flexibility and control over memory allocations and minimize performance impact by using native draw operations. We pre-allocate and pre-compute as much as possible for each transition so that the only thing we need to do in the draw path is perform the actual drawing operations. The performance test UI included in the ticker-sample is a bit over-zealous but animates smoothly with a screen full of tickers.

License

Copyright 2016 Robinhood Markets, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].