B4A Class [B4X] [XUI] AS AnimatedCounter (negative- and positive-numbers)

Alexander Stolte

Expert
Licensed User
First, i spend a lot of time in creating views, some views i need by my self, but some views not and to create a high quality view cost a lot of time. If you want to support me, then you can do it here by Paypal. :)

This is a Animated Counter with more Features. The Class is based on this class from Erel.

Features:
-Negative Numbers
-Positive Numbers ;)
-Compatible with B4A,B4I and B4J
-The Numbers are Centered
-Automatic Counting

B4A, B4I, B4J
asac b4a.jpg
asac b4i.jpg
asac b4j.jpg


B4I Automatic Count, B4I +1 Count
asac b4i automatic count.gif
asac b4i count.gif


AS Animated Counter

Author: Alexander Stolte
Version: 1.0

  • ASAnimatedCounter
    • Functions:
      • AddOne As String
        current value +1
      • AddViewByCode (Parent As Object, Label As B4XView, Duration As Int, left As Int, top As Int, width As Int, height As Int) As String
      • Class_Globals As String
      • CountAnimatedTo (speed As Int, number2 As Int)
      • DesignerCreateView (Base As Object, lbl As Label, Props As Map) As String
        Base type must be Object
      • getValue As Int
      • Initialize (Callback As Object, EventName As String) As String
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • RemoveOne As String
        current value -1
      • setValue (v As Int) As String
    • Properties:
      • Value As Int

Have Fun.

Notes:
-XUI and Bitmap Creator is needed
-on B4J: jBitmapCreator, jXUI and JavaObject
-on B4I: iNitmapCreator, iXUI

Change log:
  • V1.0
    • Release of the Class
  • V1.01
    • some bug fixes
  • V1.02
    • Add ValueWithoutAnimation - set a value without the animation
If you like my work, then spend me a coffe or two :)
 

Attachments

Last edited:
Top