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

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
PayPal-Donate-Button-PNG-Clipart.png
 

Attachments

Last edited:

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:

upload_2019-6-27_17-33-45.png
 

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:

B4X:
'xlbl_baseview.Font = xui.CreateFontAwesome(0)
 xlbl_baseview.Font = xui.CreateFontAwesome(10)
 
Top