Image on tab in tabview

Hello dear developers and engineers.
I wonder if it would be possible to have an image on the tabs of the tabview widget “alongside” or “instead of” pure text?
Should I change the drawing routine?
Should I add style?
Any help would be appreciated.

Hi,

Yes! The most flexible way is to add custom drawer. Here is an example for the button matrix: Button matrix (lv_btnmatrix) — LVGL documentation (the tab buttons of the tabview are built from a button matrix)

If you need the same image for all buttons (only the checked is different) you can also use the bg_img_src style property.