ScrollView#
#
New in version 1.0.0.
ScrollView
class equivalent. It implements Material Design’s overscorll effect and
simplifies working with some widget properties. For example:
ScrollView#
ScrollView:
canvas:
Color:
rgba: app.theme_cls.primaryColor
Rectangle:
pos: self.pos
size: self.size
MDScrollView#
MDScrollView:
md_bg_color: app.theme_cls.primaryColor
API - kivymd.uix.scrollview
#
- class kivymd.uix.scrollview.StretchOverScrollStencil(*arg, **kwargs)#
Stretches the view on overscroll and absorbs velocity at start and end to convert to stretch. .. note:: This effect only works with
kivymd.uix.scrollview.MDScrollView
. If you need any documentation please look atdampedscrolleffect
.- minimum_absorbed_velocity = 0#
- maximum_velocity = 10000#
- stretch_intensity = 0.016#
- exponential_scalar#
- scroll_friction = 0.015#
- approx_normailzer = 200000.0#
- duration_normailzer = 10#
- scroll_view#
- scroll_scale#
- scale_axis = 'y'#
- last_touch_pos#
- clamp(value, min_val=0, max_val=0)#
- is_top_or_bottom()#
- on_value(stencil, scroll_distance)#
- get_hw()#
- set_scale_origin()#
- absorb_impact()#
- get_component(pos)#
- convert_overscroll(touch)#
- reset_scale(*arg)#
- class kivymd.uix.scrollview.MDScrollView(*args, **kwargs)#
An approximate implementation to Material Design’s overscorll effect.
For more information, see in the
DeclarativeBehavior
andBackgroundColorBehavior
andScrollView
classes documentation.- on_touch_down(touch)#
Receive a touch down event.
- Parameters:
- touch:
MotionEvent
class Touch received. The touch is in parent coordinates. See
relativelayout
for a discussion on coordinate systems.
- touch:
- Returns:
bool If True, the dispatching of the touch event will stop. If False, the event will continue to be dispatched to the rest of the widget tree.
- on_touch_move(touch)#
Receive a touch move event. The touch is in parent coordinates.
See
on_touch_down()
for more information.
- on_touch_up(touch)#
Receive a touch up event. The touch is in parent coordinates.
See
on_touch_down()
for more information.