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 606 forks source link

Draggable panel top fragment width does not scale to match parent in landscape mode #99

Open prabhumallappa opened 8 years ago

prabhumallappa commented 8 years ago

Hi ,

I am using draggable panel with videoView on top fragment and some listview on bottom fragment. everything works perfect in portrait mode. But in landscape mode top fragment width is not occupying full screen.

I have attached both screenshots for your reference. Please help me to fix this issue.

portriat landscape

pedrovgs commented 8 years ago

Hi @prabhumallappa the landscape mode is not supported. The portrait gap you have between the top view and the bottom view has to be related to the bottom view margin or padding, please review it and tell me if that's your error or the problem is related to the library implementation.

prabhumallappa commented 8 years ago

Hi @pedrovgs , I know about the portrait gap. My issue is to support the library in landscape mode. When I rotate the device to landscape mode, the top fragment width is not taking full screen. This happens if I use draggable panel. But if I use draggable view from your library, the top view width takes full screen but the top view resizes and hence it does not look good .

So if I use draggable panel , the top fragment does not takes full screen width.

Also, I have seen one more different scenario, If I launch the app, and rotate the device to landscape without minimize the draggable panel, then the top fragment is taking full screen width .

Please help me to support draggable panel in landscape mode.

DawinderGill commented 7 years ago

Hi @pedrovgs

I am also facing same issue. Please tell me if you found any solution. Thanks

prabhumallappa commented 7 years ago

No I didn't get any solution.

On Sep 15, 2016 9:27 PM, "DawinderGill" notifications@github.com wrote:

Hi @pedrovgs https://github.com/pedrovgs

I am also facing same issue. Please tell me if you found any solution. Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pedrovgs/DraggablePanel/issues/99#issuecomment-247370578, or mute the thread https://github.com/notifications/unsubscribe-auth/AOtMnXKaQUtzlsTAuV0efnx-CMSoFikqks5qqWr6gaJpZM4JxRPd .

DawinderGill commented 7 years ago

No problem i future if you got any please tell. For the timing i am going to next activity to make videoview landscape but by this we are not able to play buffered video in portrait mode. We can just seek video and prepare it again. ;(

cuong95nddev commented 7 years ago

Have any solution for this problem? Thank