6

how to create a Floating popup video player in android?

In my app i want floating popup window .i don't know the concept help?

like Floating YouTube Popup Player

please

Community
  • 1
  • 1
saravanan
  • 1,082
  • 1
  • 15
  • 30

3 Answers3

7

There is open source, they did all you want. Link as below:

http://flavienlaurent.com/blog/2013/08/28/each-navigation-drawer-hides-a-viewdraghelper/

https://github.com/pedrovgs/DraggablePanel

user412599
  • 81
  • 1
  • 4
1

Create a PopupWindow which contains a VideoView

Buda Gavril
  • 21,409
  • 40
  • 127
  • 196
  • I don't know how Floating YouTube Popup Player is, but you can drag a popupWindow on the screen. And I'm assuming that UI design is not a problem for you – Buda Gavril Jun 19 '13 at 11:59
  • 5
    no friend its problem to me.i want play video on any activity but popup window its show on current activity only – saravanan Jun 19 '13 at 12:01
1
  1. Make AbsoluteLayout with fill_parent for width and height and add VideoView on this. Also, you can implement Frame/Linear layour with padding and background as frame for your VideoView

  2. Add onTouchListener for VideoView and implement standart drag behavior in this listener by updating coordinates of VideoView

  3. Add this AbsoluteLayout on your activity layout.

Dimmerg
  • 2,113
  • 1
  • 13
  • 14