User Tools

Site Tools


wiki:kivy_recycle_view1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:kivy_recycle_view1 [2020/11/28 17:15] – created antisawiki:kivy_recycle_view1 [2020/12/14 19:34] (current) antisa
Line 1: Line 1:
-<code>+{{tag>python code}} 
 +====== RecycleView ====== 
 + 
 +<file python recycle_view.py>
 from kivy.app import App from kivy.app import App
 from kivy.lang import Builder from kivy.lang import Builder
Line 27: Line 30:
  
 <VideoItem>: <VideoItem>:
-    color: (.5, 1, 1, 1) +    color: (.5, 1, 1, 1) # value here doesn't matter, its just a placeholder, doesn't work without this 
-    font_size: 1 +    font_size: 1 # value here doesn't matter 
-    text: "text" +    text: "text" # value here doesn't matter 
-    input_data: self.input_data+    input_data: self.input_data # value here doesn't matter
     orientation: 'horizontal'     orientation: 'horizontal'
     Button:     Button:
Line 49: Line 52:
     viewclass: 'VideoItem'     viewclass: 'VideoItem'
     RecycleBoxLayout:     RecycleBoxLayout:
 +        default_size: None, None
         default_size_hint: 1, None         default_size_hint: 1, None
         size_hint_y: None         size_hint_y: None
Line 65: Line 69:
  
 Test().run( Test().run(
-</code>+</file> 
 + 
 +====== See also ====== 
 +[[wiki:kivy_custom_size_widgets|Custom widget size example]] 
wiki/kivy_recycle_view1.1606580112.txt.gz · Last modified: 2020/11/28 17:15 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki