Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to make view which can minimize like as youtube in android

I need to minimize a Imageview like as youtube in right corner of screen in an application, but i do not know how to create it, use any library or not?

like image 714
Dalvinder Singh Sandhu Avatar asked Dec 24 '22 16:12

Dalvinder Singh Sandhu


2 Answers

You can find the library here:

https://github.com/pedrovgs/DraggablePanel

like image 160
MarkySmarky Avatar answered Dec 28 '22 05:12

MarkySmarky


you can so so using ViewDragHelper.

A nice implementation can be found at http://old.flavienlaurent.com/blog/2013/08/28/each-navigation-drawer-hides-a-viewdraghelper/,

look at "A REAL EXAMPLE, THE YOUTUBE WHILE PLAYING LAYOUT" section

like image 24
Asaf Pinhassi Avatar answered Dec 28 '22 07:12

Asaf Pinhassi