You can redesign the Now Playing screen without touching C code. A layout is an LVGL XML file that says what the screen looks like. The app takes care of what it does: playback, seeking, cover art, lyrics, theme colors.
The Player Layout picker discovers XML files on each visit. Drop a layout on the SD card, close and reopen the picker, then select it. There is no Lua registration step and installing a file never activates it automatically. The built-in layout remains the default and the fallback whenever a custom one fails to load.
Included and downloadable designs
The firmware bundles Gallery, Panorama and Orbit. The layout download gallery offers Vinyl, Hiby’s and Hiby’s Graph as separate plugins, each fitted to all three players. Tap the cover to open or close lyrics. Gallery and Panorama retain controls in their lyrics views; Vinyl and Orbit use the standard lyrics page. Gallery and Vinyl use the player's frosted glass cover pipeline behind the artwork. The designs reuse the player's existing icons. Hiby’s places square artwork flush with the top edge, with the translucent status bar over it and a frosted footer. Its XML timelines preserve left-aligned metadata when returning from lyrics. The compact R3 II 2025 and R3 Pro II variants omit the album line to leave room for playback controls.
Hiby’s Graph follows Hiby’s design with the existing filled envelope waveform seek bar. It uses XML only, reuses all icons and includes all three board variants. Tap the cover for lyrics and seek directly on the waveform.
Quick start
- Save one XML component, such as
clean.xml, anywhere in one of the plugin layout folders below. Its file name (without.xml) is shown in Settings. - Keep the widget names listed under Widgets the app looks for; timelines and visual styling belong in the XML.
- On the player, open Settings > Display > Player Layout > Layout. If the picker is already open, close and reopen it to rescan, then select
Clean. Player rebuilds with the selected layout and remembers the choice across restarts.
To go back, pick Default in the same list.
After editing the active XML file, close and reopen the picker, select another layout (or Default), then select yours again to reload it.
Where layout files go
The app rescans these folders whenever the layout picker opens. Each folder scheme creates IDs as shown below:
| Folder | Use it for |
|---|---|
/usr/resource/litegui/theme2/player_layouts/ | Layouts shipped with the firmware (firmware resources are packaged separately from the public executable sources). |
/usr/data/theme_overrides/player_layouts/ | Layouts installed on the device's internal storage. |
<SD card>/.plugins/player_layouts/*.xml | Legacy shared-folder files; their historical ID is the bare stem. |
<SD card>/.plugins/*.xml | Plugin-root XML files; ID is plugin.<stem>. |
<SD card>/.plugins/<bundle>/player_layouts/*.xml | Plugin-bundle files; ID is plugin.<bundle>.<stem>, such as plugin.GalleryPlayer.gallery_player. |
On the simulator, the folders are assets/theme2/player_layouts/, ./music/.plugins/*.xml, ./music/.plugins/player_layouts/ and ./music/.plugins/<bundle>/player_layouts/.
File names (without .xml) are 1 to 63 letters, digits, _, - or ., must not start with ., and default is reserved. A layout is one .xml component up to 256 KB. It may use PNGs in a matching sibling image folder as described below. The picker holds up to 64 layouts including Default. A later file takes precedence only when it resolves to the same ID; equal stems in different plugin bundles have different IDs and can both appear. In the firmware and theme-override folders, names beginning with example_ are reserved for developer examples and are hidden from the picker; plugin layouts may use that prefix.
One file per screen size
The players have different screens: R1 is 480x800, R3 Pro II is 480x720 and R3 II 2025 is 320x480. A layout built with percentages and flex rows can fit all of them. If it doesn't, add a version for a specific screen next to it, named [email protected]:
clean.xml used on every screen without its own file
[email protected] used instead on the R3 II 2025
clean_320x480.xml also recognized as a board-size variant
Only clean appears in Settings. @WIDTHxHEIGHT is preferred when both suffix styles exist; _WIDTHxHEIGHT remains supported for older plugin packages. Neither variant appears as its own picker entry.
The boards are R1 at 480x800, R3 Pro II at 480x720 and R3 II 2025 at 320x480. Keep content below the status bar: allow 40 px on the two 480 px wide boards and 27 px on the compact board. Leave the bottom 31 px clear for the home gesture area. Give touch controls at least a 44x44 px hit target, even when their visible icon is smaller.
Writing the XML
A layout is one LVGL XML <component>: optional <consts>, <styles> and <animations>, plus a <view> holding the widgets. The format is described in LVGL's XML documentation (lvgl/docs/src/xml/ once the project has been built once). Things to know:
- The app uses the LVGL 9.4 XML engine, so follow the 9.4 docs.
- Use LVGL's own widgets (
lv_obj,lv_label,lv_image,lv_slider,lv_button,lv_bar,lv_arcand so on). A layout cannot use other components or other XML files. - Interactive widgets use the named roles below. Custom plugin actions use the registered
compas_actioncallback described under interaction options. - Sizes are in pixels. Use
#screen_w,#screen_h, percentages and flex layouts to adapt to the screen.
Interaction options and plugin menus
Optional constants in the component's <consts> section control only that layout. Existing layouts retain their normal behavior:
<consts>
<bool name="compas_lyrics_enabled" value="false" />
<str name="compas_artist_action" value="none" />
<str name="compas_album_action" value="album_menu" />
</consts>
compas_lyrics_enabled defaults to true. Setting it to false disables this layout's lyrics view without changing the user's global Lyrics setting. compas_artist_action and compas_album_action default to library; none disables their built-in click behavior. Any other value names an action registered by the plugin that registered this layout. Action names contain 1–63 ASCII letters, digits, _, - or .; library and none are reserved. Invalid constants reject the layout and use the normal fallback.
A custom button can call the same registered actions through LVGL's existing event syntax. Set clickable="true" on widgets that need it:
<lv_button name="custom_menu" width="80" height="48">
<event_cb trigger="clicked" callback="compas_action" user_data="album_menu" />
<lv_label text="Menu" align="center" />
</lv_button>
Only clicked events dispatch actions. If adding an explicit event to an artist or album role, set that role's action constant to none to avoid also running its automatic action. The callback does nothing when its owning plugin is absent, disabled or unloaded, or when the widget belongs to an old layout.
The plugin must call plugin.define, register its callbacks, and register the XML with plugin.set_player_layout. Top-level registration offers it in the layout picker; it does not select it automatically:
plugin.define({ id = "example.player", name = "Example Player" })
if plugin.has_capability("ui.player_actions") then
plugin.register_player_action("album_menu", function(action)
plugin.show_list("Album", {"Information", "Close"}, function(index)
if index == 1 then plugin.show_toast("Custom album action") end
end)
end)
end
plugin.set_player_layout({
id = "example.player.layout",
name = "Example Player",
xml = "ExamplePlayer/player_layouts/example.xml"
})
Callbacks run through the normal plugin error/time-budget handling and receive the action name. They can use existing plugin UI APIs such as show_list; they do not receive raw LVGL objects. Action registrations are local to their plugin, so different plugins can use the same action names. Re-registering a name replaces that plugin's callback. At most 32 actions may be registered across loaded plugins. Unloading or a failed plugin load removes its actions.
Ready-made fonts, images and sizes
These names can be used directly:
- Fonts:
player_titleandplayer_meta(the built-in Player's title and artist fonts),font_16,font_20,font_22andfont_28(these follow the Font Size setting and a custom font), andlv_font_default. Example:style_text_font="player_title". - Images: the Player's own icons, which also follow theme overrides:
default_cover,btn_play,btn_pause,btn_prev,btn_prev_s,btn_next,btn_next_s,ic_more,collect_out,collect_in,quality_waveform,order,loop,single,random,btn_back, the pressed versionsbtn_play_s,btn_pause_s,ic_more_s,collect_out_s,order_s,loop_s,single_s,random_sandspeed_s, and the stock Now Playing artworktopbar_bg(480x50),bottom_panel(480x320),progressandprogress_bg(440x12),speedanddlna. A name whose file the theme doesn't have shows nothing. Example:<lv_image src="btn_next"/>. These names don't work forbg_image_srcinside<styles>; use an<lv_image>widget there instead. - Your own images: for a layout file
<folder>/<name>.xml, every*.pngdirectly inside<folder>/<name>/is available by its file name without.png, so<folder>/clean/heart.pngis<lv_image src="heart"/>. Names use letters, digits,_and-, at most 32 files are used (in name order), and other files are ignored. A name your XML declares itself wins over the folder, and the folder wins over the ready-made names above. Plugins can ship the folder next to their layout. - Sizes:
screen_wandscreen_h, the screen size in pixels. Example:width="#screen_w".
Anything you declare in your own <consts>, <fonts> or <images> takes priority over these names.
Widgets the app looks for
The app finds widgets by their name attribute and brings them to life. The rest of your layout is decoration.
Required. Without these the layout is rejected and the default one is used:
| Name | Type | What it does |
|---|---|---|
cover_card | any | Frame for the cover art. Give it a size, rounded corners, clipping. |
cover_img | lv_image | The cover art. Put it inside cover_card; it is scaled to fill the card. Tapping it opens and closes lyrics. |
title | lv_label | Song title. Scrolls when too long. |
play_btn | lv_image | Play/pause. Its icon switches automatically and takes the accent color. |
progress_slider | lv_slider or lv_arc | Seek control. Both widget types use the same audio position and seek behavior. For a circular control, use a full-circle lv_arc with background angles from 0 to 360 and set its rotation in XML. When a previous page is available, the leftmost 48 reference pixels (scaled for the board) are reserved for swipe-back; seeking remains available around the rest of the ring. |
Optional. Leave out what you don't want:
| Name | Type | What it does |
|---|---|---|
seek_style | lv_label | Hidden configuration label selecting a waveform renderer for an lv_slider seek control. See below. It does not apply to an lv_arc. |
artist, album | lv_label | Artist (or folder name) and album. Scroll when too long. Tapping opens the matching local artist or album when the playing path is in the library. |
pos_label, dur_label | lv_label | Elapsed and total time. |
song_count | lv_label | Position in the queue, for example "3/12". |
format_badge | lv_label | Codec, bit depth and sample rate. |
quality_pill | any | Container around the format badge. |
favorite_circle | any | Background of the heart button. Tapping it toggles the favorite. |
favorite_icon | lv_image | The heart. Switches between empty and full. |
order_btn | lv_image | Play mode (in order, repeat, repeat one, shuffle). Tap to change. |
prev_btn, next_btn | lv_image | Previous and next. Hold to seek. |
more_btn | lv_image | Opens the song menu. |
dismiss_btn | any | Leaves the Player, like Back. |
overlay_panel | any | Full-screen surface the blurred cover background is drawn on. |
background_img | lv_image | The blurred cover, inside overlay_panel. |
volume_slider | lv_slider | Shows the volume. Display only, it can't be dragged. |
lyrics_backdrop | any | Optional wrapper around the cover, dim layer and lyrics-area background. Allows a cached crossfade when the XML opacity timelines are compatible. Keep labels and controls that animate outside this wrapper. |
lyrics_dim | any | Optional dim layer inside lyrics_backdrop; its background opacity is used for the open state. |
lyrics_area | any | Where the lyrics are shown. Its background opacity participates in the optional cached lyrics backdrop. See Lyrics in your own area. |
lyrics_active | lv_label | Its text color is the current lyrics line's color. Normally hidden. |
lyrics_toggle | any | Tapping it opens and closes the lyrics, like tapping the cover. |
cover_thumbnail | lv_image | A compact second cover that shares the decoded artwork. Tapping it toggles lyrics. |
play_circle | any | Container around play_btn. Its whole rectangle is included in the play button's touch target. |
transport_color | lv_label | Normally hidden. Its text color tints the transport icons, heart, and dismiss_icon, useful for light backgrounds. |
lyrics_marker | any | Normally hidden. Enables an accent rule beside the current synchronized lyric. |
cover_fade | lv_image | A noninteractive image matching the cover rectangle. The player fills it with a stable, spatially dithered fade to the layout root's background color. It leaves the cover and thumbnail images unchanged. |
A widget with the right name but the wrong type is ignored (for a required one, the layout is rejected).
When both lyrics timelines exist, a static overlay_panel containing only background objects can be cached automatically during the transition. No XML opt-in or layout-specific C code is needed. Keep live metadata and controls outside it. The cache preserves transparency, uses RGB565 when every captured pixel is opaque, and stays within a 1.5 MiB buffer budget. A solid fill, animated background descendants, or unsupported geometry uses normal live drawing.
Waveform seek bars
Use an lv_slider named progress_slider and add a hidden label to select its renderer:
<lv_label name="seek_style" text="waveform_bars" hidden="true" />
<lv_slider name="progress_slider" x="24" y="580" width="432" height="30"
style_bg_color="0x789096" style_bg_opa="255" />
Waveforms apply only to lv_slider; an lv_arc always renders as an arc. The available renderers are waveform_bars (rounded, mirrored bars), waveform_half (bars rising from a baseline), and waveform_envelope (contiguous filled columns). The slider's rectangle sets the waveform size; its background color sets the neutral waveform color. Played bars and the position marker follow the current accent. Reserve space below for time labels and at least a 44px touch target. The slider still handles seeking normally.
Omitting the label, or using an unknown value, keeps the normal LVGL slider. Each waveform renderer shows a regular rail while data is unavailable. Local files are decoded by a separate background worker into 256 RMS bins and cached under .compas/waveforms on the SD card. The cache is capped at 64 entries and checks the file's path, size, and modification time. Changing tracks cancels the previous request. Network streams, DSD, APE, unknown-duration files, and files exceeding the extraction limits use the rail fallback. Extraction keeps a 90-second time limit. Up to 16 failed file identities are remembered in memory until restart or eviction, so revisiting an unchanged unsupported track does not repeatedly decode it. Changing its size or modification time allows another attempt. Cancelled scans remain retryable. Generating a waveform never changes the playing decoder, volume, or effects.
What you get for free
- Theme colors. Labels get the theme's text colors, and the slider, heart outline and play button get the accent color. These are applied after the layout's
<styles>, so to use your own color set it directly on the widget, for examplestyle_text_color="0xFFFFFF". - Theme surfaces. The layout's root,
cover_card,overlay_panel,lyrics_backdrop,lyrics_dim,lyrics_area,favorite_circle,quality_pillandsong_countget the theme's window color as their background color, andprogress_slider's groove gets the text color at low opacity. Only the color is set: give a widget astyle_bg_opato show its background at all. Leavestyle_bg_coloroff to follow light and dark themes. - Extra glyphs and captions. An image named
glyph_<anything>gets the same tint as the transport icons, and a label namedcaption_<anything>the muted text color, so a layout's own icons and captions follow the theme too. - Bigger touch areas. Small buttons get an invisible touch area of at least 44x44 pixels around them. It is placed once, when the screen is built, so a timeline that moves a button doesn't move its touch area.
- Scrolling text.
title,artistandalbumscroll when the text is too long. Give them a fixed width (for examplewidth="100%"). Useheight="content"to keep the full font height available, including at larger font settings, so the marquee scrolls horizontally. - Artist and album taps. Keep the
artistandalbumlabels outside the cover image's hit area: tapping the cover toggles lyrics, while tapping a metadata label opens its matching local library group. Streams and tracks that are not indexed locally leave these labels inert. - The blurred background. If you leave out
overlay_panelandbackground_img, the app adds hidden ones behind everything. To see the blurred cover, keep whatever sits on top of them transparent. - Song info for other features. If you leave out
artistoralbum, the app keeps hidden copies, so Remote Control and the quick drawer still show them.
Animations and the lyrics view
Add a <timeline> with one of these names to animate the screen. Each one is optional:
| Timeline | Plays when |
|---|---|
screen_enter | the Player opens |
track_change | a new song starts (after its title and artist are shown) |
lyrics_open | lyrics open (tap on the cover) |
lyrics_close | lyrics close |
Timelines animate style properties such as opacity, size, position offsets (translate) and padding. See ui_elements/animations.rst in LVGL's XML docs.
Timeline performance
The built-in default and XML lyrics transitions use the same property-timeline runner, snapshots, damage handling and completion logic. The default supplies responsive geometry in C; downloaded layouts supply geometry in XML. New XML layouts do not need their own C animation implementation.
- The shared timeline runner skips a style update when its interpolated value is unchanged from the current value. This avoids redundant invalidation and layout work on frames where an integer property rounds to the same value.
- Animation Scale applies to XML timeline durations and delays, including per-animation delays and timeline start or repeat delays. Choose timings at the normal 100% scale; nonzero intervals have a short minimum so LVGL can finish the animation cleanly at low scales.
- Prefer animating
translate_xortranslate_ywhen an object only needs to move. Animatewidthorheightwhen its visible bounds really need to change, because size changes can trigger layout work each frame. - For lyrics timelines, the player can snapshot eligible short, single-line labels through a private clone, then move the transparent frames during the transition without disturbing the live label's marquee state. Text that needs marquee scrolling or wrapping stays live. Custom drawing, unsupported animated styles or layout-managed labels also stay live; no special XML markup is needed. Explicitly clipped single-line labels can also use a snapshot. Animated left padding is supported with fixed text alignment; combining animated padding and alignment keeps the label live.
- The first refresh waits until the deferred lyrics timeline starts. Requests received during preparation are retained, so the first visible frame uses the running animation clock instead of presenting a stationary frame first.
- Prepared timelines sample moving label frames and cached backdrops from the same animation clock. Exported timelines retain timer-based sampling.
- Timeline completion reveals lyrics using the animation runner's completion event. The row pool is prepared while hidden without scroll animation and reused when the final pane is shown; its final height is applied before the active line is centered.
- While a lyrics timeline runs on the active player screen, overlapping damage is combined into a single display region. This avoids drawing the same backdrop repeatedly and copying fragmented regions between framebuffer pages.
- A plain, opaque cover can reuse its full-size snapshot across lyrics transitions and keep it displayed after closing. This is automatic for rectangular cards with an undecorated cover image and, optionally, an unchanged managed
cover_fadeoverlay. Animated dim and lyrics-area layers remain live. Other decorations, masks, opacity changes and unsupported transforms use the existing rendering path. Changing the cover or its styles invalidates the retained snapshot. - Decoded cover art can reuse exact resting-size transforms in a separate two-entry cache capped at 1.5 MiB. Only repeated transforms are admitted; animation sizes are rendered from the original artwork. Source replacement drops these entries before releasing pixels. Rounded clipping and native antialias sampling remain in use.
- Completed intermediate cover transforms can also be reused after a transition ends when the source and every transform property still match. Idle drawing only looks up existing entries; it does not admit new animation sizes or allocate another cache. Source changes invalidate these entries.
- A
lyrics_backdropcan cache the cover and lyrics-area backgrounds as two opaque RGB565 endpoints, then blend between them using the opacity timelines in the XML. For the proxy to cover the captured bounds, give the wrapper zero padding, border and radius, use no flex/grid layout or transforms, and keep it and its ancestors visible and opaque. Set the wrapper background to opaque (style_bg_opa="255") because RGB565 snapshots do not retain transparency. Keep only thelyrics_dimandlyrics_areabackground opacity animations inside the wrapper. The open timeline must animate both from their closed values to their open values, and the close timeline must reverse those endpoints. Within each direction, both animations need matching delay, duration and easing. The opening and closing timelines may use different timing curves; each blend follows its own XML timeline. At the start of each transition, the visible opacities must match that direction's start values. If both opacity layers animate and their bounds overlap, they stay live: stacked opacity cannot be reproduced by blending only two endpoint images. For a delayed animation withoutearly_apply, ensure the opacity left visible before the delay also matches its start value. Unsupported geometry, animation or starting state keeps the live XML rendering in use. - A static
lyrics_backdropwithoutlyrics_dimorlyrics_areacan also retain an opaque, recolored RGB565 image. Plain images already use a direct copy and stay live. Masks, layered opacity and unsupported geometry stay live too; changing the source or styles invalidates the retained image. - Avoid an extra opaque fill behind cover art that fully covers its card. Keep the card's rounded clipping, and retain a background when the artwork can be transparent, missing, or otherwise leave parts of the card uncovered. The opaque
lyrics_backdropwrapper above is still needed when using its cache.
Lyrics without timelines. If the layout doesn't define both lyrics_open and lyrics_close, the standard animation runs: the cover shrinks to the top-left corner, the song info moves next to it, the controls hide, and the lyrics fill the space below.
Lyrics with timelines. If both exist, your timelines move things, and the app:
- turns off the buttons' touch areas while lyrics are open,
- when
lyrics_openfinishes, hides these widgets:order_btn,prev_btn,play_btn,next_btn,more_btn,progress_slider,pos_label,dur_label,quality_pill,dismiss_btnandsong_count(except one that contains, or sits inside, the cover or the song info), and alwaysfavorite_circle, - shows the lyrics below whichever of the cover, title, artist or album ends lowest,
- shows those widgets again when
lyrics_closestarts, so they can animate back in.
Anything else on the screen, such as decorations, is left as is: hide or fade it in your timelines.
Lyrics in your own area
For a cached crossfade of the cover and lyrics backdrop, place the cover, lyrics_dim and lyrics_area inside a lyrics_backdrop wrapper. These three roles are optional as a group for the crossfade. A wrapper without either opacity role instead uses the static backdrop path described above; a wrapper with only one opacity role uses ordinary XML rendering. Keep metadata and controls outside the wrapper so their own XML timelines continue to animate them. The cache refreshes when the cover or background changes.
Without lyrics_area the lyrics fill the width of the screen below the cover and song info. Add a lyrics_area (normally an empty transparent lv_obj) and they appear exactly inside its rectangle instead:
- You own the placement. The app does not run its cover animation and does not hide any controls. With no
lyrics_openandlyrics_closetimelines the lyrics simply appear in the area and disappear on close. With both, they play as above and the lyrics appear in the area whenlyrics_openends. - Taps. Touch targets that overlap the area are turned off while the lyrics are open, so they don't take the taps meant for the lyrics. Tapping a line seeks to it, as always. Tapping empty space inside the area closes the lyrics.
lyrics_toggle, if you have one, opens and closes them in any mode. - Line width. Lines wrap to the width of the area (with the usual side margins), not the screen's.
- Alignment and colors. The area's
style_text_alignsets the alignment of the lines (centered by default). Its ownstyle_text_coloris the color of normal lines (gray by default), and thestyle_text_colorof thelyrics_activelabel is the color of the current line (the accent color by default). The colors also apply when there is nolyrics_area. They are read once, when the screen is built. The text size is the Lyrics Text Size setting; a layout can't change it.
<lv_obj name="lyrics_area" x="0" y="50" width="480" height="430"
style_bg_opa="0" style_border_width="0"
style_text_color="0xffffff" style_text_align="center"/>
<lv_label name="lyrics_active" text="" hidden="true" style_text_color="0x1062f2"/>
The HiBy Stock Player example includes a complete layout built this way, with lyrics_open and lyrics_close timelines that dim the cover.
Tips:
- End
lyrics_closein the layout's normal state. Leaving the Player jumps straight to its end. - During a lyrics transition, the player can use a captured cover frame and scale it with
cover_card, then restore the live image when motion ends. - The lyrics text itself (font and highlighting) and the lyrics pane's side and bottom margins are not part of the layout; the colors and alignment can be set with the roles above.
Using a layout from a plugin
A plugin can ship a layout and offer it in Settings:
plugin.set_player_layout({ xml = "player_layouts/clean.xml", name = "Clean" })
The path is relative to the SD card's .plugins folder. Called from the plugin's top-level code, this only adds the layout to Settings > Display > Player Layout > Layout; the user picks it there and the choice is remembered while the plugin stays installed. Called from a callback, it switches to the layout right away, for this session only. The background options of set_player_layout (flat, bg_color, blur) are global and apply to every layout, so a layout that wants its own background should paint it itself. The HiBy Stock Player example is a complete example. See plugin.set_player_layout in PLUGINS.md for the details. Published plugins, including ones that ship layouts, live in the compas-plugins repository.
Download cards and previews
Layout > Download shows published layouts as cover cards using the EPUB reader's grid style. Tap a card for its description and the existing install, update, or remove actions. The regular Plugin Manager hides layout packages.
To give a package a preview, add "preview": "preview.jpg" to its store.json in compas-plugins. Use an actual device screenshot exported as a baseline JPEG, at most 240 × 400 pixels and 64 KiB. The release builder publishes it as an independent asset with dimensions, size, and SHA-256 in the catalog; it is not installed on the SD card or counted in the plugin's installation size. Previews download and convert to fitted RGB565 thumbnails in the background into a bounded RAM cache. Visible cards are requested first, with nearby cards prefetched; offscreen previews can be evicted so larger catalogs remain browsable. Temporary decoder contention allows up to three attempts with a delay between attempts. Packages without an image, or with an unavailable image, keep a named placeholder card.
The installed Layout selector uses the same cards, with an accent outline and a Selected label for the active layout. Its previews work offline: place a PNG beside the XML with the same base filename, such as player_layouts/gallery_player.png for gallery_player.xml. Resolution variants ([email protected] or gallery_player_480x720.xml) share that PNG. Session registrations also use the XML filename, independently of their registered ID. Include the PNG in the package's files list so it is installed along with the XML.
Use an actual device screenshot, at most 240 × 400 pixels and 512 KiB. The preview must be a regular PNG file beside the XML; missing or unsupported previews fall back to a named card. Built-in layouts use player_layouts/<layout-id>.png from the theme assets, including default.png. This offline PNG is separate from the JPEG published for download cards.
Building a layout into the firmware
Developers can compile a layout into the app instead of shipping an XML file. LVGL's UI Editor (LVGL Pro) can export an XML component as C, which gives a function like lv_obj_t * my_player_create(lv_obj_t * parent);.
- In the editor, name the widgets as above, then export the component.
- Copy the generated
.cand.hintosrc/ui/player/layout/and add the.ctoAPP_SRCSin theMakefile. The code must build against LVGL 9.5 inlvgl/. Fonts and icons are app objects there: use the C names, for exampleapp_font_player_titleandasset_path("playing_plane/btn_play.png")(src/ui/player/layout/player_layouts.clists them all). - Register the layout once, early in
gui_init()and beforegui_player_init():
```c #include "../player/layout/player_layouts.h" #include "../player/layout/my_player.h"
player_layouts_register_c("my_player", "My player", my_player_create); ```
The first argument is the id saved in the settings, the second the name shown in Settings. The create function must return the root object it made, or NULL on failure.
- To use timelines from exported code, register a function that returns them by name. It is called once per name when the screen is built, and each timeline must belong to
root:
```c static lv_anim_timeline_t * my_player_timeline(lv_obj_t * root, const char * name) { if (strcmp(name, "track_change") == 0) return my_player_get_track_change(root); return NULL; }
player_layouts_register_c_ex("my_player", "My player", my_player_create, my_player_timeline); ```
If something goes wrong
- The default layout shows instead of mine. The file failed to load, or a required widget is missing or has the wrong type. The reason is printed to the app's error output (stderr). On the simulator, run it from a terminal to see it.
- My layout isn't in the list. Check the folder, the
.xmlextension, and that the name only uses letters, digits,_,-and.. Files with@in the name are screen-size versions and are not listed. - Part of the screen is cut off on one model. Add a
[email protected]version for that screen. - An attribute seems to do nothing. LVGL ignores attributes it doesn't know, and in release builds it doesn't warn about them. Check the spelling against the 9.4 XML docs.
Notes
- Only one XML layout is loaded at a time. Selecting a layout in Settings or through a plugin schedules a Player-only rebuild on the UI loop. It preserves plugin Lua state, audio/DSP, queue, navigation history, and any other screen currently in front; when Player is visible, a retained frame covers it while its widgets are replaced. A rebuild delayed by an interaction stays queued and uses the latest request. This does not restart plugins or recreate the rest of the interface.
- The XML engine adds about 220 KB to the app. It only starts when an XML layout is used.
- The app sizes
background_imgto the full screen and places it at the top-left of its parent, so put it in a full-screen container at the top-left of the screen (asoverlay_panelis in the example).
Context-specific plugin layouts
A plugin can register its own complete XML layout with plugin.set_player_layout and select it from a menu or event callback. For example, an audiobook plugin can select a reading layout when a book starts, hide lyrics, disable the artist link, and add rewind, speed, and chapter-menu actions. Registration during plugin load only makes the layout available; it does not select it.
On firmware with capability ui.player_layout_restore, call plugin.restore_player_layout() when leaving that context. This clears only the calling plugin's session selection and restores the layout saved in Settings. It leaves another plugin's selection alone. It does not maintain a stack of previous plugin selections. The return value reports whether the effective layout ID changed; false can also mean the override was cleared but the saved layout has the same ID. Selection and restoration use the same deferred Player-only rebuild as the native picker and retain a pending request through a active interaction.
There is no API to insert arbitrary widgets into the currently selected layout. Use a complete XML layout with the usual widget roles, and customize only the parts you need in that XML. Background options are global appearance settings, not an owner-scoped partial layout override.
Two installable examples live in the companion plugins repository: examples/ActionDeckPlayer (Stage, custom metadata menus) and examples/ReadingRoomPlayer (Paper, audiobook controls and opt-in folder switching).
Practical notes for player layouts
A layout uses two kinds of names:
- XML element names such as
<lv_image>and<lv_slider>tell LVGL what to create. LVGL's XML parser must support the element. - Role names such as
cover_imgandplay_btnconnect selected objects to playback, metadata, and lyrics behavior. Put these in the object'snameattribute.
For example, lv_image is the element type and cover_img is its role:
<lv_image name="cover_img" />
Required roles
Every layout needs these five roles or the player falls back to Default:
| Role | XML element | Purpose |
|---|---|---|
cover_card | Any LVGL object | Cover artwork frame. |
cover_img | lv_image | Cover art and lyrics toggle. Place inside cover_card. |
title | lv_label | Track title. |
play_btn | lv_image | Play/pause icon. The player updates its image and hit target. |
progress_slider | lv_slider or lv_arc | Playback position and seek control. |
The required roles are checked by name and type. Optional roles of the wrong type are ignored. The player can create hidden overlay_panel, background_img, and volume_slider objects when they are absent.
Useful optional roles
| Role | Element | What the player uses it for |
|---|---|---|
artist, album | lv_label | Metadata; taps use the selected library or plugin action. |
pos_label, dur_label | lv_label | Elapsed time and duration. |
song_count | lv_label | Current queue position. |
order_btn, prev_btn, next_btn, more_btn | lv_image | Playback order, transport, and track menu controls. |
dismiss_btn | Any object | Click target that leaves the Player. |
favorite_circle | Any object | Favorite control surface. |
favorite_icon | lv_image | Favorite state icon. |
format_badge | lv_label | Codec, bit depth, and sample rate. |
quality_pill | Any object | Surface around quality information. |
lyrics_area | Any object | Placement and text styling for lyrics. |
lyrics_active | lv_label | Text color for the current lyric line. |
lyrics_toggle | Any object | Additional lyrics toggle target. |
cover_thumbnail | lv_image | Additional cover image and lyrics toggle target. |
overlay_panel | Any object | Surface for the blurred cover background. |
background_img | lv_image | Background image inside overlay_panel. |
lyrics_backdrop, lyrics_dim | Any object | Lyrics transition backdrop and dim layer. |
panorama_lyrics_dim | Any object | Fallback name used when lyrics_dim is absent. |
cover_fade | lv_image | Optional fade overlay matching the cover rectangle. |
seek_style | lv_label | Hidden label choosing a waveform renderer for an lv_slider. |
volume_slider | lv_slider | Display-only volume indicator. |
The lyrics_marker role enables an accent marker beside the current lyric. play_circle can expand the play button's touch target. A transport_color label supplies an icon tint from its text color; this also tints optional dismiss_icon and lyrics_icon images. Names matching glyph_* tint images, and names matching caption_* apply muted text styling to labels.
Constants and plugin actions
Use #screen_w and #screen_h for the current board dimensions. Ready-made fonts are player_title, player_meta, font_16, font_20, font_22, font_28, and lv_font_default.
These component constants control layout interactions:
compas_lyrics_enableddefaults totrue; set it tofalseto disable inline lyrics for this layout.compas_artist_actionandcompas_album_actiondefault tolibrary.libraryopens the matching local library group when available.nonedisables that automatic tap action. Any other value names an action registered by the plugin that owns the active layout.
A custom button can use the registered compas_action callback:
<lv_button name="album_menu" clickable="true">
<event_cb trigger="clicked" callback="compas_action" user_data="album_menu" />
<lv_label text="Album" align="center" />
</lv_button>
Register album_menu with plugin.register_player_action() in the owning plugin. Action names may contain 1–63 ASCII letters, digits, _, -, or .; library and none are reserved. At most 32 actions can be registered across loaded plugins. Only clicked events dispatch actions. The action is ignored if its plugin is no longer active or the widget belongs to an old layout.
Images
Stock image aliases include default_cover, btn_play, btn_pause, btn_prev, btn_next, ic_more, collect_out, quality_waveform, order, loop, single, random, speed, and dlna, along with their available pressed variants. For example:
<lv_image src="btn_next" />
Stock assets follow theme overrides. A missing file draws nothing. Image aliases do not work as bg_image_src in <styles>; use an <lv_image> element instead.
For a layout at <folder>/<name>.xml, PNG files in <folder>/<name>/ can be used by basename without .png. The player registers up to 32 valid filenames in name order. Basenames may use letters, digits, _, and -, with up to 63 characters. Your XML's own image declarations take precedence over folder images; folder images take precedence over stock aliases.
API index
Looking for a particular function, setting or widget? Choose a name to see how to use it.
Action callback
Naming your actions
Capabilities
XML component
Layout constants
Fonts
Built-in images
bottom_panelbtn_backbtn_nextbtn_next_sbtn_pausebtn_pause_sbtn_playbtn_play_sbtn_prevbtn_prev_scollect_incollect_outcollect_out_sdefault_coverdlnaic_moreic_more_slooploop_sorderorder_sprogressprogress_bgquality_waveformrandomrandom_ssinglesingle_sspeedspeed_stopbar_bg
Your own images
Plugin API version
Player roles
albumartistbackground_imgcover_cardcover_fadecover_imgcover_thumbnaildismiss_btndismiss_icondur_labelfavorite_circlefavorite_iconformat_badgelyrics_activelyrics_arealyrics_backdroplyrics_dimlyrics_iconlyrics_markerlyrics_togglemore_btnnext_btnorder_btnoverlay_panelpanorama_lyrics_dimplay_btnplay_circlepos_labelprev_btnprogress_sliderquality_pillseek_stylesong_counttitletransport_colorvolume_slider
Extra text styling
XML elements
lv_arclv_barlv_buttonlv_buttonmatrixlv_calendarlv_calendar-header_arrowlv_calendar-header_dropdownlv_canvaslv_chartlv_chart-axislv_chart-cursorlv_chart-serieslv_checkboxlv_dropdownlv_dropdown-listlv_imagelv_keyboardlv_labellv_objlv_obj-bind_flag_if_eqlv_obj-bind_flag_if_gelv_obj-bind_flag_if_gtlv_obj-bind_flag_if_lelv_obj-bind_flag_if_ltlv_obj-bind_flag_if_not_eqlv_obj-bind_state_if_eqlv_obj-bind_state_if_gelv_obj-bind_state_if_gtlv_obj-bind_state_if_lelv_obj-bind_state_if_ltlv_obj-bind_state_if_not_eqlv_obj-bind_stylelv_obj-event_cblv_obj-play_timeline_eventlv_obj-remove_stylelv_obj-remove_style_alllv_obj-screen_create_eventlv_obj-screen_load_eventlv_obj-stylelv_obj-subject_increment_eventlv_obj-subject_set_float_eventlv_obj-subject_set_int_eventlv_obj-subject_set_string_eventlv_obj-subject_toggle_eventlv_qrcodelv_rollerlv_scalelv_scale-sectionlv_sliderlv_spangrouplv_spangroup-spanlv_spinboxlv_switchlv_tablelv_table-celllv_table-columnlv_tabviewlv_tabview-tablv_tabview-tab_barlv_tabview-tab_buttonlv_textarea
API reference
This guide covers API 17. Older minimum versions are listed where known. For names you choose yourself, such as actions or image files, check the naming rules below.
Action callback
compas_action
Naming your actions
plugin player actions
Dynamic names are supplied by plugins; 1–63 ASCII letters, digits, underscore, dot, or hyphen. library and none are reserved. Up to 32 actions are registered globally; registration requires plugin.define() first.
- Accepted names
- [A-Za-z0-9_.-]{1,63} excluding library, none
- Registry limit
- 32
Capabilities
ui.player_actions
Check plugin.has_capability("ui.player_actions") before using this feature.
- Signature
plugin.has_capability("ui.player_actions") → boolean
XML component
compas_player_layout
Layout constants
compas_album_action
XML scope constant.
- Default
- library
- Meaning
- library opens the local library group; none disables; other values dispatch a registered action owned by this layout's plugin
compas_artist_action
XML scope constant.
- Default
- library
- Meaning
- library opens the local library group; none disables; other values dispatch a registered action owned by this layout's plugin
compas_lyrics_enabled
XML scope constant.
- Default
- true
- Meaning
- bool text true|false; false disables inline lyrics for this layout
screen_h
XML scope constant.
- Default
- BOARD_SCREEN_HEIGHT
- Meaning
- screen dimension in pixels
- Default expression
- BOARD_SCREEN_HEIGHT
screen_w
XML scope constant.
- Default
- BOARD_SCREEN_WIDTH
- Meaning
- screen dimension in pixels
- Default expression
- BOARD_SCREEN_WIDTH
Fonts
font_16
font_20
font_22
font_28
lv_font_default
player_meta
player_title
Built-in images
bottom_panel
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/buttom.png
btn_back
Stock image alias; resolves through theme-aware assets.
- Built-in file
- sub_back/btn_back.png
btn_next
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/btn_next.png
btn_next_s
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/btn_next_s.png
btn_pause
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/btn_pause.png
btn_pause_s
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/btn_pause_s.png
btn_play
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/btn_play.png
btn_play_s
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/btn_play_s.png
btn_prev
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/btn_prev.png
btn_prev_s
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/btn_prev_s.png
collect_in
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/collect_in.png
collect_out
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/collect_out.png
collect_out_s
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/collect_out_s.png
default_cover
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/default_cover_565.png
dlna
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/dlna.png
ic_more
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/ic_more.png
ic_more_s
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/ic_more_s.png
loop
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/loop.png
loop_s
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/loop_s.png
order
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/order.png
order_s
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/order_s.png
progress
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/progress.png
progress_bg
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/progress_bg.png
quality_waveform
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/quality_waveform.png
random
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/random.png
random_s
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/random_s.png
single
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/single.png
single_s
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/single_s.png
speed
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/speed.png
speed_s
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/speed_s.png
topbar_bg
Stock image alias; resolves through theme-aware assets.
- Built-in file
- playing_plane/topbar_bg.png
Your own images
<layout-stem>/*.png
PNG aliases from the sibling image folder, sorted by basename; the first 32 valid regular files are registered before stock aliases, while XML-declared names take precedence.
- Image alias names
- [A-Za-z0-9_-]{1,63}
- Limit
- 32
Plugin API version
PLUGIN_API_VERSION
Player roles
album
Album metadata label.
- Type
- label
- XML elements
- lv_label
- Required
- No
- What the player does
- Label populated with album metadata; marquee and click action applied when present.
artist
Artist metadata label.
- Type
- label
- XML elements
- lv_label
- Required
- No
- What the player does
- Label populated with artist/folder metadata; marquee and click action applied when present.
background_img
Optional hidden background image source.
- Type
- image
- XML elements
- lv_image
- Required
- No
- What the player does
- Background image child of overlay_panel; auto-created hidden if absent.
cover_card
Cover artwork frame; required.
- Type
- any
- XML elements
- any LVGL object
- Required
- Yes
- What the player does
- Cover-card ancestor used by artwork sizing and cover transition code.
cover_fade
Bound player layout role.
- Type
- image
- XML elements
- lv_image
- Required
- No
- What the player does
- Image receives generated cover-edge fade; allocation failure uses translucent background fallback.
cover_img
Cover image; required, fills the cover card, and opens lyrics when tapped.
- Type
- image
- XML elements
- lv_image
- Required
- Yes
- What the player does
- Required image; filled with current cover, clickable to toggle lyrics.
cover_thumbnail
Bound player layout role.
- Type
- image
- XML elements
- lv_image
- Required
- No
- What the player does
- Image toggles lyrics; clickability follows lyrics state.
dismiss_btn
Dismiss/back hit target.
- Type
- any
- XML elements
- any LVGL object
- Required
- No
- What the player does
- Optional clickable object wired to leave the Player.
dismiss_icon
Bound player layout role.
- Type
- image
- XML elements
- lv_image
- Required
- No
- What the player does
- Image optionally tinted using transport_color.
dur_label
Track duration label.
- Type
- label
- XML elements
- lv_label
- Required
- No
- What the player does
- Label populated with total duration.
favorite_circle
Favorite control container.
- Type
- any
- XML elements
- any LVGL object
- Required
- No
- What the player does
- Optional favorite target/container; styles and favorite behavior attach when present.
favorite_icon
Favorite state image.
- Type
- image
- XML elements
- lv_image
- Required
- No
- What the player does
- Optional image updated for favorite state.
format_badge
Codec, bit depth, and sample rate label.
- Type
- label
- XML elements
- lv_label
- Required
- No
- What the player does
- Label populated with codec, bit depth, and sample rate.
lyrics_active
Bound player layout role.
- Type
- label
- XML elements
- lv_label
- Required
- No
- What the player does
- Label text color supplies current lyric line color.
lyrics_area
Lyrics content container.
- Type
- any
- XML elements
- any LVGL object
- Required
- No
- What the player does
- Lyrics placement and text color/alignment source; clickability removed so underlying controls remain tappable.
lyrics_backdrop
Lyrics backdrop object.
- Type
- any
- XML elements
- any LVGL object
- Required
- No
- What the player does
- Optional cached lyrics transition wrapper when compatible timelines exist.
lyrics_dim
Lyrics dimming overlay.
- Type
- any
- XML elements
- any LVGL object
- Required
- No
- What the player does
- Optional lyrics dim layer; fallback alias panorama_lyrics_dim is checked if absent.
lyrics_icon
Bound player layout role.
- Type
- image
- XML elements
- lv_image
- Required
- No
- What the player does
- Image optionally tinted using transport_color.
lyrics_marker
Bound player layout role.
- Type
- any
- XML elements
- any LVGL object
- Required
- No
- What the player does
- Presence enables the current-line accent marker.
lyrics_toggle
Bound player layout role.
- Type
- any
- XML elements
- any LVGL object
- Required
- No
- What the player does
- Any object becomes clickable and toggles lyrics; image is optionally transport-tinted.
more_btn
Track actions control image.
- Type
- image
- XML elements
- lv_image
- Required
- No
- What the player does
- Image receives track-actions hit target.
next_btn
Next track control image.
- Type
- image
- XML elements
- lv_image
- Required
- No
- What the player does
- Image receives next-track hit target and hold-to-seek behavior.
order_btn
Playback order control image.
- Type
- image
- XML elements
- lv_image
- Required
- No
- What the player does
- Image source reflects play mode; receives playback-order hit target.
overlay_panel
Optional panel layered over the Now Playing screen.
- Type
- any
- XML elements
- any LVGL object
- Required
- No
- What the player does
- Receives blurred cover background; auto-created full-screen if absent.
panorama_lyrics_dim
Legacy alias for the lyrics dimming overlay.
- Type
- any
- XML elements
- any LVGL object
- Required
- No
- What the player does
- Fallback alias for lyrics_dim.
play_btn
Play/pause transport image; required.
- Type
- image
- XML elements
- lv_image
- Required
- Yes
- What the player does
- Required image; source replaced with current play/pause asset and covered by the playback hit target.
play_circle
Bound player layout role.
- Type
- any
- XML elements
- any LVGL object
- Required
- No
- What the player does
- Any object receives accent styling and expands play hit-target bounds.
pos_label
Elapsed playback time label.
- Type
- label
- XML elements
- lv_label
- Required
- No
- What the player does
- Label populated with elapsed playback time.
prev_btn
Previous track control image.
- Type
- image
- XML elements
- lv_image
- Required
- No
- What the player does
- Image receives previous-track hit target and hold-to-seek behavior.
progress_slider
Seek bar; required and must support the player's seekbar API.
- Type
- any
- XML elements
- lv_slider, lv_arc
- Required
- Yes
- What the player does
- Required lv_slider or lv_arc; configured and wired to seek, timeline position, and swipe handling.
quality_pill
Audio quality badge container.
- Type
- any
- XML elements
- any LVGL object
- Required
- No
- What the player does
- Optional surface used when styling quality badge and queue-count row.
seek_style
Bound player layout role.
- Type
- label
- XML elements
- lv_label
- Required
- No
- What the player does
- Label text selects waveform renderer for progress_slider; unknown/missing text leaves standard rail.
song_count
Current queue position label.
- Type
- label
- XML elements
- lv_label
- Required
- No
- What the player does
- Label populated with current queue position; constrained to one line.
title
Track title label; required.
- Type
- label
- XML elements
- lv_label
- Required
- Yes
- What the player does
- Required label; populated with track title and marquee-enabled.
transport_color
Bound player layout role.
- Type
- label
- XML elements
- lv_label
- Required
- No
- What the player does
- Label text color recolors named transport/favorite/dismiss/lyrics icons.
volume_slider
Optional volume slider.
- Type
- slider
- XML elements
- lv_slider
- Required
- No
- What the player does
- Slider displays volume; hidden slider is auto-created if absent and is display-only.
Extra text styling
glyph_* / caption_*
Named extras: an image named glyph_<anything> receives transport tint; a label named caption_<anything> receives muted text styling.
- XML elements
- glyph_*: lv_image; caption_*: lv_label
XML elements
lv_arc
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_ARC
lv_bar
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_BAR
lv_button
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_BUTTON
lv_buttonmatrix
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_BUTTONMATRIX
lv_calendar
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_CALENDAR
lv_calendar-header_arrow
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_CALENDAR, LV_USE_CALENDAR_HEADER_ARROW
lv_calendar-header_dropdown
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_CALENDAR, LV_USE_CALENDAR_HEADER_DROPDOWN
lv_canvas
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_CANVAS
lv_chart
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_CHART
lv_chart-axis
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_CHART
lv_chart-cursor
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_CHART
lv_chart-series
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_CHART
lv_checkbox
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_CHECKBOX
lv_dropdown
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_DROPDOWN
lv_dropdown-list
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_DROPDOWN
lv_image
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_IMAGE
lv_keyboard
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_KEYBOARD
lv_label
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_LABEL
lv_obj
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-bind_flag_if_eq
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-bind_flag_if_ge
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-bind_flag_if_gt
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-bind_flag_if_le
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-bind_flag_if_lt
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-bind_flag_if_not_eq
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-bind_state_if_eq
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-bind_state_if_ge
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-bind_state_if_gt
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-bind_state_if_le
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-bind_state_if_lt
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-bind_state_if_not_eq
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-bind_style
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-event_cb
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-play_timeline_event
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-remove_style
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-remove_style_all
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-screen_create_event
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-screen_load_event
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-style
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-subject_increment_event
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-subject_set_float_event
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-subject_set_int_event
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-subject_set_string_event
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_obj-subject_toggle_event
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML
lv_qrcode
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_QRCODE
lv_roller
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_ROLLER
lv_scale
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_SCALE
lv_scale-section
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_SCALE
lv_slider
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_SLIDER
lv_spangroup
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_SPAN
lv_spangroup-span
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_SPAN
lv_spinbox
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_SPINBOX
lv_switch
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_SWITCH
lv_table
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_TABLE
lv_table-cell
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_TABLE
lv_table-column
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_TABLE
lv_tabview
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_TABVIEW
lv_tabview-tab
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_TABVIEW
lv_tabview-tab_bar
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_TABVIEW
lv_tabview-tab_button
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_TABVIEW
lv_textarea
LVGL XML element/parser name. This parser registration is subject to its compile-time feature guards; style attributes are parsed separately and are not extra element names.
- Build conditions
- LV_USE_XML, LV_USE_TEXTAREA