1
+ '''
2
+ RecycleView Layouts
3
+ ===================
1
4
5
+ The Layouts handle the presentaiton of views for the
6
+ :class:`~kivy.uix.recycleview.RecycleView`.
7
+
8
+ .. warning::
9
+ This module is highly experimental, its API may change in the future and
10
+ the documentation is not complete at this time.
11
+ '''
2
12
from kivy .compat import string_types
3
13
from kivy .factory import Factory
4
14
from kivy .properties import StringProperty , ObjectProperty
@@ -124,7 +134,8 @@ def apply_selection(self, index, view, is_selected):
124
134
'''
125
135
viewclass = view .__class__
126
136
if viewclass not in _view_base_cache :
127
- _view_base_cache [viewclass ] = isinstance (view , RecycleDataViewBehavior )
137
+ _view_base_cache [viewclass ] = isinstance (view ,
138
+ RecycleDataViewBehavior )
128
139
129
140
if _view_base_cache [viewclass ]:
130
141
view .apply_selection (self .recycleview , index , is_selected )
@@ -137,10 +148,10 @@ def refresh_view_layout(self, index, pos, pos_hint, size, size_hint, view,
137
148
138
149
139
150
class RecycleLayoutManagerBehavior (object ):
140
- """A RecycleLayoutManagerBehavior is responsible for positioning views into the
141
- :attr:`RecycleView.data` within a :class:`RecycleView`. It adds new views
142
- into the data when it becomes visible to the user, and removes them when
143
- they leave the visible area.
151
+ """A RecycleLayoutManagerBehavior is responsible for positioning views into
152
+ the :attr:`RecycleView.data` within a :class:`RecycleView`. It adds new
153
+ views into the data when it becomes visible to the user, and removes them
154
+ when they leave the visible area.
144
155
"""
145
156
146
157
viewclass = ObjectProperty (None )
0 commit comments