B4A Library SpinnerLoader

The attached project wraps this Github project.


Library files are in the /files folder of the B4A project. Copy them to your additional library folder. Posting the B4A project and the java source code (library.zip).


Johan Schoeman
Version: 1
  • SpinnerLoader
    • ba As BA
    • BringToFront
    • DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
    • Initialize (EventName As String)
    • Invalidate
    • Invalidate2 (arg0 As Rect)
    • Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
    • IsInitialized As Boolean
    • RemoveView
    • RequestFocus As Boolean
    • SendToBack
    • SetBackgroundImage (arg0 As Bitmap)
    • SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
    • SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
    • SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
    • SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
    • Background As Drawable
    • Color As Int [write only]
    • DefaultCircleRadius As Float [write only]
    • DefaultMoveRadius As Float [write only]
    • Enabled As Boolean
    • Height As Int
    • Left As Int
    • Pointcolor As Int [write only]
    • Tag As Object
    • Top As Int
    • Visible As Boolean
    • Width As Int


  • b4aSpinnerLoader.zip
    21.2 KB · Views: 256
  • library.zip
    16.2 KB · Views: 278


Licensed User
Longtime User
Hi Johan

I need some help with this little tiny example here. I cant get it running. I want to show the spinner and disable all the views in my activity and also enable them when the spinner hides. Tried everything, it just gets stuck on the screen as shown below. I have attached the project here. I'm not sure if its the spinner error or perhaps my activity.

by the way, the visible property of the spinnerloader is not recognized when set in the designer. To hide it I "send back"


  • SpinnerX.b4a.zip
    305.4 KB · Views: 151
  • spinner_error.png
    22.5 KB · Views: 156