This is an reels video view application like intsagram , i have used scrollview to scroll video widget . problem is when i am pressing buttons in MDFloatLayout buttons not getting always touch .
see codes of in videocard.py
<VideoCard>:
md_bg_color: [0, 0, 0, 1]
size_hint_y: None
video_state: 'stop'
MDFloatLayout:
Video:
source: root.data['source']
state: root.video_state
pos_hint: {'center_x':.5, 'top':1}
id:vid
MDIconButton:
icon:'play' if vid.state=='stop' else 'pause'
theme_font_size:'Custom'
theme_icon_color:'Custom'
icon_color:'white'
font_size:'50sp'
pos_hint:{'center_x':0.5,'center_y':0.5}
on_release:
root._callback(vid)
MDIconButton:
icon:'magnify'
pos_hint:{'center_x':0.5,'y':0.3}
theme_font_size:'Custom'
theme_icon_color:'Custom'
icon_color:'white'
font_size:'100sp'
Button:
size_hint:None,None
size:'50dp','50dp'
text:'Play'
pos_hint:{'center_x':0.5,'center_y':0.8}
on_press:print('Hello')