Fixed code to use <screen> tags as base for the xml. Confirmed layout works now.

This commit is contained in:
2026-03-15 15:08:23 -04:00
parent ebb0ccecf4
commit f64860125c
5 changed files with 49 additions and 53 deletions

View File

@@ -8,10 +8,12 @@ constexpr int MAX_DEVICES = 8;
constexpr int DEVICE_XML_MAX = 2048;
constexpr char kDefaultLayoutXml[] =
"<lv_obj width=\"800\" height=\"480\" flex_flow=\"column\" flex_main_place=\"center\" flex_cross_place=\"center\" style_pad_row=\"10\">\n"
"<screen>\n"
" <view width=\"100%\" height=\"100%\" layout=\"flex\" flex_flow=\"column\" style_flex_main_place=\"center\" style_flex_cross_place=\"center\" style_pad_row=\"10\">\n"
" <lv_label text=\"Hello World\" />\n"
" <lv_label bind_text=\"device_mac\" />\n"
"</lv_obj>";
" </view>\n"
"</screen>";
struct device_t
{