lv_xml_update.h¶
Functions
-
lv_result_t lv_xml_update_from_data(const char *xml_def)¶
Change the properties of a given widget by processing XML snippets. For example
<lv_slider name="my_slider_1" min_value="30" "style_bg_color="0xff0000"/>
Note that the tag should be the underlying widget's name and the component's name.- Parameters:
xml_def – the XML to process as a string
- Returns:
LV_RESULT_OK: loaded successfully, LV_RES_INVALID: otherwise