B4A Library SpinnerLoader

The attached project wraps this Github project.


SpinnerLoader.gif



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).

1.png



spinnerloader
Author:
Johan Schoeman
Version: 1
  • SpinnerLoader
    Fields:
    • ba As BA
    Methods:
    • 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)
    Properties:
    • 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
 

Attachments

  • b4aSpinnerLoader.zip
    21.2 KB · Views: 342
  • library.zip
    16.2 KB · Views: 362

Mashiane

Expert
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"
 

Attachments

  • SpinnerX.b4a.zip
    305.4 KB · Views: 229
  • spinner_error.png
    spinner_error.png
    22.5 KB · Views: 228
Top