Kivy作为非常年轻的控件,变化非常的快,在kivy的1.11版开始,ListView就不复存在了,如果调用的的话会出现 的错误。
官方文档转录如下:
ListView is removed in Kivy version 1.11.0. Below snippets show the equivalent in RecycleView. There are two examples in Kivy documentation for RecycleView.
The snippets below show the equivalent using RecycleView.
Snippets: kv file
RecycleView:
id: x
viewclass: 'Label'
RecycleBoxLayout:
default_size: None, dp(26)
default_si