Hello,
I want to know how to change the table cell’s padding? LVGL7 I can use a style to set the padding, but LVGL8 can’t. By the way, the screen width is limited, so i can’t increase the column width.
Hello,
I want to know how to change the table cell’s padding? LVGL7 I can use a style to set the padding, but LVGL8 can’t. By the way, the screen width is limited, so i can’t increase the column width.
Cell padding can be set by below function.
lv_obj_set_style_pad_left(table, 13, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_pad_right(table, 13, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_pad_top(table, 14, LV_PART_ITEMS|LV_STATE_DEFAULT);
lv_obj_set_style_pad_bottom(table, 14, LV_PART_ITEMS|LV_STATE_DEFAULT);