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
source
share