【发布时间】:2019-05-11 16:11:00
【问题描述】:
我正在尝试学习 Kivy,并制作了一个包含许多屏幕的小项目。第一个问题是,我想展示 20 个问题,并且每个问题都有一个复选框。但是,如果屏幕上适合 20 个问题,则图像不会很好。为了解决这个问题 我想使用滚动。因此,如果您可以向下滚动,则问题将得到解决。但是我不能在 Screen 中使用 RecycleView。
那么如何在 Screen 中使用 RecycleView?
我在互联网上查看了其他类似的问题,但要么我不明白,要么不是我需要的。
编辑: 我的.kv 文件中的代码生成的图像这就是我想要的。我只需要添加一个向下滚动功能。我该怎么做?
我的 .kv 文件
<SkillChose>:
name:"skill"
GridLayout:
cols:1
GridLayout:
cols:2
Label:
text:"try"
CheckBox:
Label:
text:"more"
CheckBox:
Label:
text:"try"
CheckBox:
Label:
text:"more"
CheckBox:
Label:
text:"try"
CheckBox:
Label:
text:"more"
CheckBox:
Label:
text:"pls"
CheckBox:
Label:
text:"try"
CheckBox:
Label:
text:"more"
CheckBox:
Label:
text:"try"
CheckBox:
Label:
text:"pls"
CheckBox:
Label:
text:"more"
CheckBox:
Label:
text:"pls"
CheckBox:
Label:
text:"more"
CheckBox:
Label:
text:"pls"
CheckBox:
Label:
text:"more"
CheckBox:
Label:
text:"pls"
CheckBox:
Label:
text:"more"
CheckBox:
Label:
text:"pls"
CheckBox:
Label:
text:"more"
CheckBox:
【问题讨论】:
标签: python python-3.x kivy kivy-language