Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to dispaly a videoview in full screen in Dialog?
    primarykey
    data
    text
    <p>I have one video view. When i will touch that, it should display in a dialog with almost full screen view. For that i used the below code:</p> <pre><code>mVideoFirst.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { mVideoFirst.stopPlayback(); mVideoDialog.show(); mVideoFullScreen.setVideoPath(clip1.getAbsolutePath()); mMediaController3.setMediaPlayer(mVideoFullScreen); mVideoFullScreen.setMediaController(mMediaController3); mVideoFullScreen.requestFocus(); mVideoFullScreen.start(); return false; } }); </code></pre> <p>For the dialog i used the below java code:</p> <pre><code>mVideoDialog = new Dialog(this); mVideoDialog.requestWindowFeature(Window.FEATURE_NO_TITLE); mVideoDialog.setContentView(R.layout.fullscreen_video); mVideoDialog.setOnKeyListener(this); mVideoFullScreen = (VideoView) mVideoDialog.findViewById(R.id.fullscreen_videoview); </code></pre> <p>And here is my xml vile for the dialog:</p> <pre><code> &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;VideoView android:id="@+id/fullscreen_videoview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_alignParentTop="true" &gt; &lt;/VideoView&gt; &lt;/RelativeLayout&gt; </code></pre> <p>Now the problem is, video is playing in the dialog. But video is coming in the right side of the dialog. There is a lot of empty space in the left side of the dialog. And the controller is hiding behind the dialog. So i am not able to control the video using the video controller as i can not touch that.</p> <p>Can any one help me..</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload