diff --git a/docs/src/details/xml/ui_elements/animations.rst b/docs/src/details/xml/ui_elements/animations.rst index b33e8915c2..cefaa857de 100644 --- a/docs/src/details/xml/ui_elements/animations.rst +++ b/docs/src/details/xml/ui_elements/animations.rst @@ -61,7 +61,7 @@ that you can reference later. Inside a ````, you add ````\ s to describe each step. Supported properties of ```` are: -- ``prop``: Style property to animate. All integer style properties are supported (colors are not). +- ``prop``: Style property to animate. All integer, percentage and color style properties are supported. - ``selector``: Style selector, e.g. ``knob|pressed``. Default: ``main|default``. - ``target``: Name of the UI element to animate. ``self`` refers to the root element of the Component (the ````). - ``start``: Start value (integer only). diff --git a/examples/others/xml/lv_example_xml_2.c b/examples/others/xml/lv_example_xml_2.c index 57ddfb9a62..e74d271058 100644 --- a/examples/others/xml/lv_example_xml_2.c +++ b/examples/others/xml/lv_example_xml_2.c @@ -23,8 +23,6 @@ void lv_example_xml_2(void) lv_obj_t * obj = (lv_obj_t *) lv_xml_create(lv_screen_active(), "view", NULL); lv_obj_set_pos(obj, 10, 10); - lv_xml_component_unregister("my_button"); - const char * slider_attrs[] = { "x", "200", "y", "-15", diff --git a/examples/others/xml/my_button.xml b/examples/others/xml/my_button.xml index bcfb69a394..d0eed4ea6f 100644 --- a/examples/others/xml/my_button.xml +++ b/examples/others/xml/my_button.xml @@ -1,15 +1,42 @@ + - - - - + + + - - - + +