Spinner (lv_spinner)
A continuously rotating arc that indicates an activity is in progress.
Overview
The Spinner shows a continuously rotating arc over a ring to indicate that an activity is in progress. Its spin duration and arc length are configurable.
Learn more in the LVGL Open documentation.
Properties
Parts
Style parts of the widget with local style (e.g. style_bg_color-knob="0xff0000") or with style sheets (e.g. <style name="style_knob" selector="knob">). See Styles to learn more.
| Part | Description |
|---|---|
main | The background arc (extends lv_arc): arc_color, arc_width, arc_opa, arc_rounded. |
indicator | The spinning arc that animates around: the arc_* properties. |
Properties below are the widget's XML <api>; see API for how properties, parameters and elements work.
| Property | Type | Description |
|---|---|---|
anim_duration | int | Set the animation time of the spinner. |
arc_sweep | int | Set the animation arc length of the spinner. The animation is suited to values between 180 and 360. |
Last updated on