Lv_table - Sticky header, is it possible?

Description

I’d like to create a table that has a sticky header. Ie the content other than the header can be scrollerd. Is this possible

@kisvegabor, @embeddedt, @pete-pjb, @bader do you think this is possible? Thanks!

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

Simulator/Linux (PI)

What LVGL version are you using?

8.3

What do you want to achieve?

As described

What have you tried so far?

Review docs/forum

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

None as of yet

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

I was thinking about it to add this feature, but I realized that the sticky header can be achieved by creating two tables:

  1. a table with one row, it will be the header
  2. a table with the real content below the header

What do you think?

I think that (based on my current table style) it would look rather strange due to the rounding on the corners.

I think it would be far better if it was baked in and had a simple API to enable it.

lv_table_set_StickyHeader(table, numberofheaderrows)

Or something along those lines.

What do you think?

You can have a rounded gray lv_obj as parent and 2 mostly transparent tables.

We should support the same horizontally too.

Wow this will be nice!

If you could that would be awesome!!