Tileview Different interface themes

Description

If I use “lv_tileview_add_tile” to create a different interface,how to set different “bg_color” for several interfaces of tileview? I try to get the child object and set it again, but it does not take effect, so,i can only set the overall style?

What MCU/Processor/Board and compiler are you using?

simulator

What LVGL version are you using?

v8.3.7

What do you want to achieve?

After creating several interfaces using “lv_tileview_add_tile”, set different “bg_clolr” for them.

What have you tried so far?

Get the tileview subobject and set it to a different “bg color”
I tried redrawing with “LV_EVENT_DRAW_PART_BEGIN”, but it didn’t work either

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.
/lv_obj_t * tile2 = lv_tileview_add_tile(tv, 0, 1, LV_DIR_TOP | LV_DIR_RIGHT);
lv_obj_set_style_bg_color(lv_obj_get_child(tv, 1), lv_color_make(0, 0, 255), 0);
/
The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

please try:

lv_obj_t * tile2 = lv_tileview_add_tile(tv, 0, 1, LV_DIR_TOP | LV_DIR_RIGHT);
lv_obj_set_style_bg_color(lv_obj_get_child(tv, 1), lv_color_make(0, 0, 255), 0);
lv_obj_set_style_bg_opa(lv_obj_get_child(tv, 1), LV_OPA_100, 0);

Thank you. It’s happening