Description
๐ A library that helps you animate change in numeric values in a TextView
AnimatedCountTextView alternatives and similar packages
Based on the "Animations" category.
Alternatively, view AnimatedCountTextView alternatives based on common mentions on social networks and blogs.
-
Lottie for Android, iOS, and React Native
Render After Effects animations natively on Android and iOS -
AndroidViewAnimations
Cute view animation collection. -
UltimateAndroidReference
๐ Ultimate Android Reference - Your Road to Become a Better Android Developer -
ListViewAnimations
An Android library which allows developers to easily add animations to ListView items -
NineOldAndroids
Android library for using the Honeycomb animation API on all versions of the platform back to 1.0! -
android-flip
A component for flip animation on Android, which is similar to the effect in Flipboard iPhone/Android -
transitions-everywhere
Backport of Transitions API from Android 4.4. Compatible with Android 2.2+ -
ChatKit for Android
Flexible components for chat UI implementation with flexible possibilities for styling, customizing and data management -
RecyclerViewItemAnimators
This repo provides simple animators for the item views in the RecyclerView This code is cloned from DefaultItemAnimator provided by Google customizing the animations. -
PhotoEditor
A Photo Editor library with simple, easy support for image editing using paints,text,emoji and Sticker like stories. -
ViewPagerTransforms
Library containing common animations needed for transforming ViewPager scrolling for Android v13+. -
Spotlight
Android Library that lights items for tutorials or walk-throughs etc... -
AnimationEasingFunctions
Android Animation Easing Functions. Let's make animation more real! -
android-ripple-background
A beautiful ripple animation for your app -
ShimmerLayout
Memory efficient shimmering effect for Android applications -
FabulousFilter
Android library to animate Floating Action Button to Bottom Sheet Dialog and vice-versa -
Rich Path Animator
animation, vector-drawable, vector, SVG -
BaseAnimation
BaseAnimation network Android animation set, custom controls, nearly 200 kinds of source code๏ผ BaseAnimation, if a new version is updated automatically to remind everyone, I hope everyone will contribute their animated XML files or other source, together to create this open source app๏ผ -
EasyAndroidAnimations
Easy Android Animations is an animation library that aims to make android animations easier, with 50+ builtin animations, it allows you to introduce many complex animation effects in your application with one or two lines of code. -
PreLollipopTransition
Simple tool which help you to implement activity transition for pre-Lollipop devices. -
Stfalcon ImageViewer
A simple and customizable Android full-screen image viewer with shared image transition support, "pinch to zoom" and "swipe to dismiss" gestures -
EasyFlipView
A quick and easy flip view through which you can create views with two sides like credit cards, poker cards etc. -
SpeedView
Dynamic Speedometer and Gauge for Android. amazing, powerful, and multi shape โก -
TransitionPlayer
Android library to control Transition animates. A simple way to create a interactive animation. -
Interactive-animation
Collect android animation -
Road Runner
Road Runner is a library for android which allow you to make your own loading animation using a SVG image -
ColorPickerView
color picker, colorpickerview, android, argb -
WhatTodo
A Simple Todo app design in flutter to keep track of your task on daily basis.You can add project,labels and due-date to your task also you can sort your task on the basis of project, label and dates -
TreeView
Android TreeView is used to display data in tree structures. -
AppIntroAnimation
AppIntroAnimation is a set of code snippets to make cool intro screen for your app with special Image Translation and Transformation animation effects. It is very easy to use and customize without adding third party library integrations. -
Youtube UI/UX Animation
With MVVM Architecture pattern using Android Architecture Components This is a sample app demonstrating Youtube player animation using constraint layout -
Dachshund Tab Layout
Extended Android tab layout with animated indicators that have continuous feedback. -
TextFieldBoxes
New Material Design text field that comes in a box, based on Google Material Design guidelines.
Get performance insights in less than 4 minutes
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of AnimatedCountTextView or a related project?
README
AnimatedCountTextView
A library that helps you animate change in numeric values in a TextView
.
Gradle Dependency
Add the dependency to your app's build.gradle
:
implementation 'com.r4sh33d:AnimatedCountTextView:0.0.1'
Usage
Add the AnimatedCountTextView
to your layout.
<com.r4sh33d.animatedcounttextview.AnimatedCountTextView
app:startWith="0"
app:endWith="100"
app:duration="4000"
app:suffix="%"
app:numberType="integer"
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textSize="30sp" />
Then call the start()
method to start the count:
countTextView.start()
You can optionally listen for the count end event by setting a CountEndListener
countTextView.countEndListener(object : CountEndListener {
override fun onCountFinish() {
// Do something
}
})
If required, you can also stop the count at any time by calling the stop()
method:
countTextView.stop()
That's all for basic usage. Your AnimatedCountTextView
should animate form your startWith
value to endWith
value within the given time duration
.
Customisation
AnimatedCountTextView
attempts to use some default values to simplify the usage. The behaviour can be further
customized by setting the following attributes via xml
or code
.
Start and End values
You can use the xml attributes startWith
and the endWith
values to specify the value to animate from, and value to animate to, respectively.
<com.r4sh33d.animatedcounttextview.AnimatedCountTextView
...
app:startWith="0"
app:endWith="100"/>
or programmatically:
countTextView.startWith(0)
countTextView.endWith(100)
Duration
You can specify the duration(in milliseconds) for the count-up or count-down animation using the duration
attribute in xml.
<com.r4sh33d.animatedcounttextview.AnimatedCountTextView
...
app:duration="4000"/>
or programmatically:
countTextView.duration(4000)
Number Type
You can use NumberType
to specify the type of number you want to animate. You can either specify NumberType.Integer()
or NumberType.Decimal()
. You can also apply custom formatting to display the animated values. Custom formats can be specified by passing a DecimalFormat
to NumberType.Integer()
or NumberType.Decimal()
constructor. The default NumberType
is Integer
.
<com.r4sh33d.animatedcounttextview.AnimatedCountTextView
...
app:numberType="integer"/>
Programmatically:
countTextView.numberType(NumberType.Decimal(twoDecimalPlacesFormat))
//or
countTextView.numberType(NumberType.Integer())
Prefix and Suffix
You can specify prefix
and/or suffix
to the animated values. This is useful if you want to specify a currency symbol as a prefix
or the percentage sign as the suffix
.
<com.r4sh33d.animatedcounttextview.AnimatedCountTextView
...
app:suffix="%"
app:prefix="$"/>
or programmatically:
countTextView.prefix("$")
//or
countTextView.suffix("%")
Interpolator
You can specify the Interpolator to use when animating the values. This can only be done programmatically:
countTextView.interpolator(AccelerateDecelerateInterpolator())
License
Copyright (c) 2019 Rasheed Sulayman.
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 all licence references and agreements mentioned in the AnimatedCountTextView README section above
are relevant to that project's source code only.