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.

PartDescription
mainThe background arc (extends lv_arc): arc_color, arc_width, arc_opa, arc_rounded.
indicatorThe 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.

PropertyTypeDescription
anim_durationintSet the animation time of the spinner.
arc_sweepintSet the animation arc length of the spinner. The animation is suited to values between 180 and 360.

Last updated on

On this page