B4A Library [Lib] CustomProgressDialog

This library will allow you to customize a Progress Dialog.

Requirements:

- B4A 3.x

How to install:

- Copy the CustomProgressDialog.jar and CustomProgressDialog.xml to your additional libraries directory.

How to use:

B4X:
'Initialize the library
Dim myProgressDialog As CustomProgressDialog

'Create your ProgressDialog
'Leaving the animation parameter blank will display the default spinner.
'Entering -1 on LEFT or TOP parameters will center the CustomProgressDialog
myProgressDialog.Initialize(Activity, 95%x, -1, -1, "", Colors.DarkGray, 0, "")  

'Display it
myProgressDialog.Show("Tap the BACK key to stop...", Colors.White)

B4X:
'Hide/Close the CustomProgressDialog
myProgressDialog.Hide

That's it!!

The included animations are: Spinner, Laser, Bounce, Domino and Holo.


You can also customize a ProgressDialog with a ProgressBar, look at the attached sample for more details.

NOTE: Updated to version 2.20, added a new animation named "Holo".
 

Attachments

  • CustomProgressDialog_Sample.zip
    13 KB · Views: 1,211
  • CustomProgressDialog_Lib_2.20.zip
    19.1 KB · Views: 1,295
Last edited:

techknight

Well-Known Member
Licensed User
Longtime User
Does this library depend on Webviewextras? It keeps asking for it and I am not using it for anything related to webviews.

Last thing I need is another dependency I dont need. any thoughts?

It is not mentioned in the first post as a "Requires"
 

Myr0n

Active Member
Licensed User
Longtime User
I opened the attached project sample that is in the first post and I remove all webview references and works like a charm without Webviewextras library.
In the project sample is included that library to demonstrate that can work with webviews.

Is up to you to include the Webviewextras.
 

skaliwag

Member
Licensed User
Longtime User
I opened the attached project sample that is in the first post and I remove all webview references and works like a charm without Webviewextras library.
In the project sample is included that library to demonstrate that can work with webviews.

Is up to you to include the Webviewextras.

Actually, the WebViewExtras library is not needed at all, for either the sample or the library.
The core WebView works just fine.
The problem is that WebViewExtras is listed as a dependent in the CustomProgressDialog.xml file.
Remove the relevant line from that file and all is fine.
 
Top