3

I am trying to code an app where you can paint (Finger paint) free hand on a running video in a VideoView. I have the two things running sepaerately but not together. I can draw my paint on a blanc screen and i can play my video on my videoView, which is implementet in an xml layout.

Is there a way to overlay the xml videoview View with an other View which can be drawable?

Pankaj Arora
  • 10,224
  • 2
  • 37
  • 59
user447863
  • 31
  • 2

2 Answers2

2

The FrameLayout is designed for overlaying multiple views on top of each other. Provided your paint view is mostly transparent, you should be able to overlay it over the video view in a FrameLayout.

Cheryl Simon
  • 46,552
  • 15
  • 93
  • 82
1

I think your best option is to draw on SurfaceView, instead of using VideoView. SurfaceView provides lots of functions that VideoView doesn't, like correct the aspect ratio dependps on the screen size or whatever.

See the next thread, where some people talk about draw on SurfaceView:

how to draw image on surfaceView

Cheers!

Community
  • 1
  • 1