B4A Class [B4X] [XUI] AS Floating Loading Button

Discussion in 'Additional libraries, classes and official updates' started by Alexander Stolte, Apr 29, 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. :)

    B4J example.gif
    Android example.gif

    The Loading Animations are from the B4XLoadingIndicator by @Erel

    Author: Alexander Stolte
    Version: 1.0

    • ASFloatingLoadingButton
      • Events:
        • AfterStart
        • ButtonClick
        • Finished
      • Functions:
        • Class_Globals As String
        • Complete
        • DesignerCreateView (Base As Object, lbl As Label, Props As Map) As String
          Base type must be Object
        • getBaseView As B4XView
        • getButtonColor As Int
        • getButtonText As String
        • getButtonView As B4XView
        • getCompleteAnimation As String
        • getEnableComplete As Boolean
        • getIndicatorColor As Int
        • getIndicatorDuration As Int
        • getIndicatorStyle As String
        • Initialize (Callback As Object, EventName As String) As String
        • IsInitialized As Boolean
          Tests whether the object has been initialized.
        • setButtonColor (color As Int) As String
        • setButtonText (text As String) As String
        • setCompleteAnimation (animation As String) As String
        • setEnableComplete (enable As Boolean) As String
        • setIndicatorColor (color As Int) As String
        • setIndicatorDuration (duration As Int) As String
        • setIndicatorStyle (style As String) As String
        • Start
      • Properties:
        • BaseView As B4XView [read only]
        • ButtonColor As Int
        • ButtonText As String
        • ButtonView As B4XView [read only]
        • CompleteAnimation As String
        • EnableComplete As Boolean
        • IndicatorColor As Int
        • IndicatorDuration As Int
        • IndicatorStyle As String
    Change log:
    - V1
    • Release

    Attached Files:

    Last edited: Apr 29, 2019
  2. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    Hello Alex, do you test on iOS?

    for android the fontawesome is working fine, but on iOS I getting this icon, look:

  3. Brandsum

    Brandsum Active Member Licensed User

    I faced this fontawesome issue too. But with a different library. So I had to set the font to fontawesome again after animation or modification of text data.
  4. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    I found the problem..in this class is already setting the fontawesome before set text but I change the initial font size and works:

    'xlbl_baseview.Font = xui.CreateFontAwesome(0)
     xlbl_baseview.Font = xui.CreateFontAwesome(10)
  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