简体   繁体   中英

Python kivy listview with custom layout?

I'm trying to write application in kivy. I would like it to have listview with custom row layout (label on top, below image scaled to window width and below some images, labels and button - see pic). Is it possible to do that with kivy.uix.listview? Or some other way? I was looking on docs but I couldn't find answer to my question.

例

Yes, it is written in docs here: Adapter

Use either cls or template property to link a customized widget to a list view.

Here you can see cls bound to ListItemButton . Put your own widget in its place.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM