All Projects → MasayukiSuda → Countanimationtextview

MasayukiSuda / Countanimationtextview

A tiny Android library makes very easier count animation of TextView.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Countanimationtextview

KodeEditor
A simple code editor with syntax highlighting and pinch to zoom
Stars: ✭ 60 (-84.69%)
Mutual labels:  textview
CustomFontView
Custom View classes for TextView, EditText & Buttons - to set custom fonts
Stars: ✭ 26 (-93.37%)
Mutual labels:  textview
Spedittool
An efficient and scalable library for inputing and displaying gif or @mention on graph-text mixed TextView/EditText
Stars: ✭ 292 (-25.51%)
Mutual labels:  textview
react-native-highlighted-text
A React Native component to individually style texts inside a text
Stars: ✭ 18 (-95.41%)
Mutual labels:  textview
textmatcher
A simple text watcher that matches specific targets like mention or hashtag in a string by defining rules
Stars: ✭ 67 (-82.91%)
Mutual labels:  textview
Gradienttextview
一个颜色逐渐改变的textview,类似歌词效果
Stars: ✭ 267 (-31.89%)
Mutual labels:  textview
embedded-text
Multiline TextBox for the embedded-graphics Rust crate
Stars: ✭ 35 (-91.07%)
Mutual labels:  textview
Rtextview
基于TextView 1.直接设置selector背景2.直接设置drawableLeft大小 3.圆角,圆形,背景/边框/文字根据状态变色
Stars: ✭ 359 (-8.42%)
Mutual labels:  textview
LycricsTextView
No description or website provided.
Stars: ✭ 14 (-96.43%)
Mutual labels:  textview
Swiftuix
Extensions and additions to the standard SwiftUI library.
Stars: ✭ 4,087 (+942.6%)
Mutual labels:  textview
FSAnimatedTextView
Animated Number Text View Library
Stars: ✭ 32 (-91.84%)
Mutual labels:  textview
extra-textview
additional features for TextView
Stars: ✭ 21 (-94.64%)
Mutual labels:  textview
Android Expandabletextview
An expandable TextView for Android applications
Stars: ✭ 268 (-31.63%)
Mutual labels:  textview
EasyMoney-Widgets
The widgets (EditText and TextView) for support of money requirements like currency, number formatting, comma formatting etc.
Stars: ✭ 91 (-76.79%)
Mutual labels:  textview
Attributedstring
基于Swift插值方式优雅的构建富文本, 支持点击长按事件, 支持不同类型过滤, 支持自定义视图等.
Stars: ✭ 294 (-25%)
Mutual labels:  textview
OutlineTextView
Android TextView with outline
Stars: ✭ 59 (-84.95%)
Mutual labels:  textview
TTInputVisibilityController
Lightweight controller to keep your inputs visible when the keyboard is presented.
Stars: ✭ 21 (-94.64%)
Mutual labels:  textview
Advancedtextview
一个增强的TextView库。可以实现文字两端对齐,文字竖排,以及自定义选择文字后的弹出菜单。
Stars: ✭ 365 (-6.89%)
Mutual labels:  textview
Dropdowntextview
Simple drop-down(expandable) TextView for Android
Stars: ✭ 307 (-21.68%)
Mutual labels:  textview
Fliptimerview
FlipTimerView library for Android
Stars: ✭ 275 (-29.85%)
Mutual labels:  textview

CountAnimationTextView

Platform Android Arsenal

A tiny Android library makes very easier count animation of TextView.

Usage

Include the CountAnimationTextView widget in your layout.

    <com.daasuu.cat.CountAnimationTextView
        android:id="@+id/count_animation_textView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="0"
        />

In your onCreate method (or onCreateView for a fragment), bind the widget.

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        mCountAnimationTextView = (CountAnimationTextView) findViewById(R.id.count_animation_textView);
    }

Animate Count with Duration

    mCountAnimationTextView
        .setAnimationDuration(5000)
        .countAnimation(0, 99999);

Animate Count with DecimalFormat

    mCountAnimationTextView
        .setDecimalFormat(new DecimalFormat("###,###,###"))
        .setAnimationDuration(10000)
        .countAnimation(0, 9999999);

Animate Count with interPolator

    mCountAnimationTextView
        .setInterpolator(new AccelerateInterpolator())
        .countAnimation(0, 9999999);

Gradle

Add the dependency to your build.gradle.

dependencies {
    compile 'com.daasuu:CountAnimationTextView:0.1.2'
}

License

Copyright 2015 MasayukiSuda

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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].