B4A Library Infinity Loading

It wraps this Github project - something different as far as what progress indicators are concerned

1.png


Sample Code

B4X:
#Region  Project Attributes
    #ApplicationLabel: InfinityLoading
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: False
#End Region

#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: True
#End Region

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.

End Sub

Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.

    Private il1 As InfinityLoading
End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("main")
    il1.ProgressColor = Colors.blue
    il1.StrokeWidth = 7
    il1.BackColor = Colors.white

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub
 

Attachments

  • b4aInfinityLoading.zip
    7.7 KB · Views: 179
  • InfinityLoadingLibFiles.zip
    8.9 KB · Views: 192
Top