How to set the label to the left side of the checkbox
What MCU/Processor/Board and compiler are you using?
Using simulator
What LVGL version are you using?
v7.3.1
What do you want to achieve?
I recently started working with LVGL.
I want to use Checkbox to enable or disable few settings as configuration for the other widgets.
Currently I see that by default label appears to the right side of the Checkbox. Is there any way that the label could be arranged to the left side of the checkbox?
What have you tried so far?
I haven’t tried much. I just learnt how to use checkbox.
LVGL does not provide an interface to change the LABEL orientation of the CHECKBOX, but you can modify the source code to achieve your functionality.Locate the lv_checkbox_create function in lv_check_box.c and modify it as follows
In effect, the creation order of Bullet and Label is swapped.Based on the above code, you can also modify it to specify the location of the LABEL at creation time