pedrovgs / DraggablePanel

Android library used to create an awesome Android UI based on a draggable element similar to the last YouTube graphic component.
Apache License 2.0
2.99k stars 605 forks source link

View Alpha and crop problem with YoutubePlayerAndroidApi #68

Closed dzunghdo closed 9 years ago

dzunghdo commented 9 years ago

I'm using DraggablePanel and YoutubePlayerSupportFragment as TopFragment in my app as implemented in your sample. But I found 2 problems with this:

  1. I recognize that when the DraggablePanel is minimized, the video is cropped. I tried fixing DEFAULT_TOP_VIEW_RESIZE in DraggableView to true, but the dragging animation is too lagged, not as smooth as before.
  2. I setEnableHorizontalAlphaEffect(true) but when the YoutubePlayer is minimized, if I horizontally swipe the DraggableView, the player becomes transparent.

Do you have any solution for these ? Hope to be answered soon. Thank you.

pedrovgs commented 9 years ago

We've already talked about this in other issues, Youtube Library does not support alpha or size changes, that's not a problem of the library.