What do you want to achieve?
=> I basically have two widgets. One of which is an image and the other a line. What I want is, the image should always be above the line.
What have you tried so far?
I have tried using “lv_obj_move_foreground(obj)”, “lv_obj_move_background(obj)”, lv_obj_move_to_index(img, index) and lv_obj_swap(img1, img2) functions, but still no luck. Both widgets are childs of the same parent. Image widget is created at initialization after the line widget is created. Line widget is updated frequently and the image remains fixed/static (which according to me is the reason why line is above image), but using those functions should have helped me but it didn’t.
Code to reproduce
/*You code here*/
Screenshot and/or video
Environment
- MCU/MPU/Board: NXP KW45B41Z-EVK
- **LVGL version: v8.3.6