Android Arsenal – Animationen

Eine kleine Android-Bibliothek macht es einfach, die TextView-Zählung zu animieren.

Fügen Sie das CounterAnimationTextView-Widget in Ihr Layout ein.

      <com.github.hamzaahmedkhan.counteranimationtextview.CountAnimationTextView
          android:id="@+id/moneyPositive"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="0"
          android:textColor="@color/black"
          android:textSize="20sp" />

Zählen mit Dauer animieren

    counterAnimationTextView
        .setAnimationDuration(5000)
        .countAnimation(0, 99999)

Animieren Sie Count mit DecimalFormat

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

Zählen animieren mit interPolator

    counterAnimationTextView
        .setInterpolator(AccelerateInterpolator())
        .countAnimation(0, 9999999)

Fügen Sie Ihrem build.gradle Abhängigkeiten hinzu.

dependencies {
 implementation 'com.github.hamzaahmedkhan:CounterAnimationTextView:1.0.1'
}

Wenn Ihnen dieses Projekt in irgendeiner Weise hilft, zeigen Sie Ihre Liebe ❤️ durch Setzen von a an diesem Projekt ✌️ …….. AUCH KOSTENLOS ZUM ZEICHNEN UND MITBRINGEN !!