In my project, I need to align and resize 3 objects with respect to each other, whenever the user touches and slides over them.
There is max and min for their size. for example if the user swipe right the obj1, its width should be increased to 60%, and if swipe left its width would be decreased until 30% of the container. and meanwhile the size of the other two objects should be changed too.
The device should work in a horizontal and vertical orientation. Here is a simple schematic of it:
My questions on this topic will be around this.
What MCU/Processor/Board and compiler are you using?
What LVGL version are you using?
What do you want to achieve?
align and resize automatically.
What have you tried so far?
I created an object as a container for these 3 objects and then set a flex layout for it.
Is it a good idea to use a flexbox for what I need? Would it be better to use a grid layout or any other solution? As I’m not familiar with flexbox, I would appreciate you to explain more about implementing this layout.