Icons on list button


I want to add 2 icons to a list button. I can add icons, but I can’t position them. Icons always remain in the upper right corner of the button. How can I fix this?

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


What LVGL version are you using?


What do you want to achieve?

Normal positioning of the image according to lv_obj_align or lv_obj_set_pos methods.

What have you tried so far?

Usual methods of positioning objects.

Code to reproduce

lv_obj_t* list_menu;
list_menu = lv_list_create(lv_scr_act());

lv_obj_t* btn = lv_list_add_btn(list, NULL, "Sample text" );
lv_obj_t* img = lv_img_create(btn);
lv_img_set_src(img, &img_r_arrow);
lv_obj_align(img, LV_ALIGN_LEFT_MID, 0, 1);