Preloader
A preloader is a commonly used interface element that displays progress to users while waiting for data loading or processing. It is usually presented in the form of an animation, giving users a sense of ongoing activity.
For more detailed information, you can refer to this link: https://docs.lvgl.io/8.3/widgets/extra/spinner.html
Properties
A preloader has several properties to define its behavior and appearance. Here are some common preloader properties:
- Arc length: Used to set the length of the arc in the preloader.
- Spin time: Used to set the loading time of the preloader.
| Preloader Properties | |
|---|---|
| Arc length | lv_spinner_create(parent, spin_time, arc_length) |
| Spin time | lv_spinner_create(parent, spin_time, arc_length) |
Styles
The preloader also has some styles to define its appearance and style.
- MAIN: Used to set the style of the preloader body and the style of the lower ring.
- INDICATOR: Used to set the style of the upper ring of the preloader.
Example

8MS