I just want to draw a circle, rectangle or something manually on the video player (when playing the video) in android. Is it possible? If any code examples are much better.
Thanks.
already have an answer to ur question:
Look here
Quote from the post:
SurfaceView probably doesn't work like a normal View in this regard.Instead, follow these steps:Place your SurfaceView inside a FrameLayout or RelativeLayout in your layout XML file, since both of them allow you to stack widgets on the Z axisMove the drawing logic to a separate custom View classAdd an instance of a custom class view to the XML layout file as a child of FrameLayout or RelativeLayout , but if it appears after SurfaceViewThis will cause your custom View class to float over SurfaceView .
SurfaceView probably doesn't work like a normal View in this regard.
SurfaceView
View
Instead, follow these steps:
FrameLayout
RelativeLayout
This will cause your custom View class to float over SurfaceView .
There is also a sample project of your choice.