If I have a <lv_obj style_bg_color=“some color” height=“some height” width=“some width” x=“150” />
The goal is this a banner on the top right of the screen that has a label and the label and baground could change based on an external message. I have multiple screens and the position is fixed the bg_color and text can change.
What would be the best way to bind this object and label to an external source.
If you want your object to remain visible on all screens, then use the lv_layer_top() as the parent,
Right now, it’s not supported in XML, you have to do this in C code
Thanks for that information.
Is it possible to treat this object as a subject and then change the baground color and/or text that always in this banner based on an external message in lvgl ?
I’m trying to ensure this banner think of it as notification appears on the active screen with text and a specific baground color. Is show/hide a better approach ? But then this would mean each screen would have repetition of possible background color and text.