How do I insert additional columns to ListView

161 views
Skip to first unread message

Christos Chatzivagias

unread,
Nov 16, 2014, 2:25:51 PM11/16/14
to kivy-...@googlegroups.com
Hello guys , I wonder if I could insert more than one columns at ListView and display a header label above any column

Any ideas??

Bruce Cropley

unread,
Nov 18, 2014, 1:54:36 AM11/18/14
to kivy-...@googlegroups.com
Hi Christos

The ListView is very powerful, but has a steep learning curve. It can be used for more than one column.
To add a header line, I found it best to just add it in kv as a GridLayout of Labels, spaced to line up with the columns. I didn't want it to scroll with the data, so that worked fine for me.
The ListView doco links to lots of examples; I guess you probably want something like: https://github.com/kivy/kivy/blob/master/examples/widgets/lists/list_composite.py

Good luck :)
Reply all
Reply to author
Forward
0 new messages