B4A Class [B4X] [XUI] AS Ripple View

Discussion in 'Additional libraries, classes and official updates' started by Alexander Stolte, Aug 22, 2019.

  1. Alexander Stolte

    Alexander Stolte Well-Known Member 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 the First Version, if you have bugs, then ask in the comments.

    Thanks to @Erel for his Simple Halo Animation.

    AS Ripple View 2 B4A.gif AS Ripple View 1 B4A.gif

    • Add View per code
    • Change Color at runtime
    • Modify the durations
    • start and stop

    Author: Alexander Stolte
    Version: 1.0

    • ASRippleView
      • Functions:
        • AddView (base As Object, duration As Int, fade_duration As Int, ripple_color As Int) As String
          Adds the View per code to the Parent (base)
        • Apply As String
          Applys the changes on the View for example: change color
        • Class_Globals As String
        • CreateHaloEffectHelper (Parent As B4XView, x As Int, y As Int, radius As Int)
        • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
          Base type must be Object
        • getDuration As Int
        • getFadeDuration As Int
        • getIsRunning As Boolean
          Checks the state of the animation
        • getRippleColor As Int
        • Initialize (Callback As Object, EventName As String) As String
        • IsInitialized As Boolean
          Tests whether the object has been initialized.
        • setDuration (duration As Int) As String
        • setFadeDuration (duration As Int) As String
        • setRippleColor (color As Int) As String
        • Start As String
          Starts the animation
        • Stop As String
          Stops the Animation
      • Properties:
        • Duration As Int
        • FadeDuration As Int
        • IsRunning As Boolean [read only]
          Checks the state of the animation
        • RippleColor As Int

    If you like my work, then spend me a coffe or two :)

    Attached Files:

    fredo, somed3v3loper, Erel and 7 others like this.
  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