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

Attachments

  • AS FloatingLoadingButton B4A Example.zip
    3.8 KB · Views: 851
  • AS FloatingLoadingButton B4j Example.zip
    2.7 KB · Views: 726
  • ASFloatingLoadingButton.b4xlib
    3 KB · Views: 594
Last edited:

kamran5734

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!
 

Alex_Puz

Member
Licensed User
Longtime User
Hello Alex, it is useful control, but how to resume after pause?
Thank you.
 

victormedranop

Well-Known Member
Licensed User
Longtime 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. :)


View attachment 79850
View attachment 79851

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
View attachment 79848
Dude ...... simple amazing !!!!!
can you post all your libraries. i am interesting
 

Alexander Stolte

Expert
Licensed User
Longtime User
can you post all your libraries. i am interesting
a list of all libs. from me, you find here:
 
Top