Loader Extension for Kodular / App Inventor
The Loader Extension is a professional, highly customizable UI component designed to enhance user experience by providing various loading indicators. It allows you to display a modern, clean dialog that blocks interaction while background tasks are running.
Key Features
-
4 Loading Styles: Spinner, Continuous Bar, Segmented Bar (with frame), and Independent Square Blocks.
-
Full Color Control: Customize the progress indicator color, track color, and dialog background color.
-
Dynamic Updates: Update progress in real-time without recreating the dialog.
-
Responsive: Works seamlessly on all Android versions supported by Kodular.
Blocks Documentation
Functions
| Block | Description |
|---|---|
ShowLoader |
Displays the loading dialog on the screen. Call this to start the process. |
HideLoader |
Dismisses and hides the loading dialog. |
UpdateProgress (progress) |
Updates the current progress value. Accepts integers from 0 to 100. |
Properties
| Property | Type | Description |
|---|---|---|
Message |
String | The text displayed below or next to the indicator. |
LoaderColor |
Color | The color of the active progress (e.g., filled bars). |
TrackColor |
Color | The color of the inactive/empty track or blocks. |
DialogBackgroundColor |
Color | The background color of the dialog window. |
UsePercentage |
Boolean | Set True for a standard horizontal progress bar. |
UseSegmentedStyle |
Boolean | Set True for a frame-based segmented progress bar. |
UseSquareBlocksStyle |
Boolean | Set True for a modern row of square loading blocks. |
Example Usage
1. Simple Spinner Setup
Use this for non-specific tasks.
Blocks:
Call Loader1.ShowLoader
2. Percentage Progress Bar
Use this when you need to show the exact state of a file download or task.
Blocks:
Set Loader1.UsePercentage to TRUE
Call Loader1.ShowLoaderInside a loop/timer:
Call Loader1.UpdateProgress progress: [current_value]
3. Modern Segmented Loader (Stylized)
Matches the popular professional loading UI design.
Blocks:
Set Loader1.UseSegmentedStyle to TRUE
Set Loader1.LoaderColor to [Blue]
Set Loader1.TrackColor to [Light Gray]
Call Loader1.ShowLoader
Pro Tip
-
Always call
ShowLoaderafter setting your configuration (Colors/Styles). -
Use a Clock component to call
UpdateProgressto create a smooth loading animation!




