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

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


  • AS FloatingLoadingButton B4A Example.zip
    3.8 KB · Views: 544
  • AS FloatingLoadingButton B4j Example.zip
    2.7 KB · Views: 464
  • ASFloatingLoadingButton.b4xlib
    3 KB · Views: 303
Last edited:


New Member
You can add this line to Private Sub FinishedHandler in your aAsfloat class!
xlbl_baseview.Font = xui.CreateFont(Typeface.SANS_SERIF,28) '28 is font size.
it will work!