Description
If some symbol size large than screen size(V/H), all screen will scroll when you touch it, How to change to only touch symbol scroll ?
What MCU/Processor/Board and compiler are you using?
F1C100S
What LVGL version are you using?
8.3
What do you want to achieve?
only touch symbol scroll
What have you tried so far?
change the symbol style, but no useful.
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.
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.
split your screen into 2 parts by creating two base objects with width = H/2, height = V. these objects will be containers for left and right objects. and put all left objects into left container, right objects - into right container.
do you mean creating two screens and show them at sametime?
No. As I can see your UI can be devided into 2 equal parts. So I suggest
lv_obj_t * obj1 = lv_obj_create(NULL);
lv_obj_set_size(obj1, H/2, V);
lv_obj_align(obj1, LV_ALIGN_TOP_LEFT, 0, 0);
lv_obj_t * obj2 = lv_obj_create(NULL);
lv_obj_set_size(obj2, H/2, V);
lv_obj_align(obj2, LV_ALIGN_TOP_RIGHT, 0, 0);
set up transparent background for those objects, and border width = 0.
and use obj1
as parent when creating left side ui-elements, obj2
as parent when creating right side ui-elements