how to create a Floating popup video player in android?

后端 未结 3 1390
天命终不由人
天命终不由人 2021-02-06 12:15

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 YouT

相关标签:
3条回答
  • 2021-02-06 12:57
    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.

    0 讨论(0)
  • 2021-02-06 13:13

    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

    0 讨论(0)
  • 2021-02-06 13:17

    Create a PopupWindow which contains a VideoView

    0 讨论(0)
提交回复
热议问题