Centered display of table content

My friend

When creating a table and setting a cell too wide, the content displayed inside will be aligned to the left. Can it be centered.

thanks

Yes.

Set the text align style property of your table item, to LV_TEXT_ALIGN_CENTER. Like so:

lv_obj_set_style_text_align(table, LV_TEXT_ALIGN_CENTER, LV_PART_ITEMS);
1 Like

Okay, thank you