B4A Class [B4X] [XUI] AS AnimatedCounter

Discussion in 'Additional libraries, classes and official updates' started by Alexander Stolte, Oct 10, 2018.

  1. Alexander Stolte

    Alexander Stolte Well-Known Member Licensed User

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

    Features:
    -Negativ Numbers
    -Positiv 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
     

    Attached Files:

    Last edited: Oct 10, 2018
    Claudio Oliveira, Erel, BPak and 9 others like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice