I created a list and added a btn to the list, how do I set the properties of the icon (LV_SYMBOL_PLAY) and the text (12345) in the btn, for example I want to change the distance and size between the icon and the text.
lv_obj_t* list1 = lv_list_create(lv_scr_act());
lv_obj_t* btn_new = lv_list_add_btn(list1, LV_SYMBOL_PLAY, “12345”);
You can change the gap with
lv_obj_set_style_pad_column(btn, distance, 0)
Thanks you! lv_obj_set_style_pad_column can change the distance between icon and text. Can I set the size of icon and text separately?
You can use
lv_obj_get_child(btn, 0 or 1); to get the first or second child of the button. After that you can add styles to them as you wish.