Spinner

Report on GitHub

Spinner basics

A loading indicator that rotates a configurable arc segment.

A spinner is a self-animating widget: nothing has to drive its value from outside. anim_duration is the number of milliseconds it takes to complete one full rotation (lower = faster). arc_sweep is the angular length of the moving segment in degrees — common values are 270° (a long C shape) or 90° (a short dash). Width and height set the diameter; the spinner sizes the arc to fill the widget.

Table styling

Style the table background and the per-cell appearance.

Table has two relevant parts: MAIN (the background and overall frame) and ITEMS (each cell — borders, padding, text). Attaching a named style_items style covers every cell uniformly. To make the header row stand out, attach a second style with selector="items" and the row-specific state — but XML doesn't yet have a per-row selector; instead set the header row's cell ctrl flags or restyle in code.

Last updated on

On this page