【发布时间】:2019-08-03 15:37:00
【问题描述】:
我的目标是有一个网格布局(垂直),其中包含另一个仅水平滚动的滚动视图,但第二个滚动视图在触摸时不滚动,仅在触摸时移动。
最好使用 RecycleView 吗?如果是这样,我该如何实施?谢谢!
代码示例:
ScrollView:
bar_width: 5
scroll_type: ['bars', 'content']
do_scroll: (False, True)
size_hint_y: None
height: Window.height
GridLayout:
id: main_box
size_hint_y: None
cols: 1
height: self.minimum_height
Button:
size_hint_y: None
height: 50
ScrollView:
bar_width: 5
scroll_type: ['bars', 'content']
do_scroll: (True, False)
size_hint_y: None
effect_cls: "ScrollEffect"
height: Window.height/4.5
GridLayout:
id: horizontal_grid
rows: 1
padding: [10, 10]
size: self.minimum_size
size_hint: None, None
Button:
size_hint_y: None
height: 50
【问题讨论】:
标签: python kivy scrollview buildozer