Fiddl3
Fiddl3
You can try extend DraggableView class and override `public boolean onInterceptTouchEvent(MotionEvent ev)` and return false when user touch mediaController view. But i discovered that this will produce NullPointerException in ViewDragHelper...
can you upload a video showing this problem?
Are You using regular Android VideoView or custom view?
Look in to sample app, there is example with YT player (but with outdated library) and it's working
Did You try set right & bottom margin for draggableview? I don't know where yt player view is overlaped and I don't have time to investigate this right now, but...
I don't understand... ``` java draggablePanel.setTopFragmentMarginRight(topViewMarginRight); draggablePanel.setTopFragmentMarginBottom(topViewMargnBottom); ``` doesn't work if you are using ResizeTransformer ?? And which view is overlaping YT player? or is it positioned outside the screen?
check my fork: https://github.com/Fiddl3/DraggablePanel/commit/c91dde454434a31f6e87a0794cd2212245c9bfa7 I tested the library in my application, but you need to test this yourself if you target pre KitKat devices (API < 16) you need to...
You are using DraggablePanel or DraggableView in your layout?? I'll look in to it tomorrow, and test in sample app.
Tomorrow I'll work on this... I'm going to remove part responsible for hiding status and nav bars, because it's depend on API level, ant can be confusing for developers. Then...
There will be one problem... In my version `scaleFactor` work differently. drag view is scaled to `1/scaleFactor` of its original size. now only for `scaleFactor=2` it match your calculations (In...