View scroll overlay during video playback

Is it possible for a pop-up window to pop up when I click on the screen during full-screen video playback? This overlay will contain ScrollView images and associated text labels.

Imagine streaming video in full screen if you want. When you click on the screen, the scrollable overlay will be displayed below with a photo and the name of all participants in this particular scene. Hope this example helped.

From what I was able to find, RelativeLayout can provide the answer I need. Almost all the questions I found related to this concerned either overlays on the Maps or in the camera channel, and not streaming video.

Any help is much appreciated! Thank!

will save diggin '...

+5
source share
1 answer

Step # 1: Create RelativeLayout

Step # 2: Put VideoViewor SurfaceViewinRelativeLayout

Step # 3: Put ScrollViewin RelativeLayoutas later than VideoView/ SurfaceView(for example, later in XML)

Step # 4: Remove ScrollView( android:visibility="gone")

Step # 5: In case of a touch event on VideoView/ SurfaceViewmake ScrollViewvisible usingsetVisibility()

Step # 6: You have a way to reject the button ScrollView(for example, BACK), returning it to the normal “no” state

+6
source

All Articles