title: Why Video View size changed automatically depending upon video size?
body: <p>Hi I have created video view application its working fine. but my video view size changed automatically depending upon the video height and width but i wish to play video in video view size how to resolve this problem.</p>
  
  <p>This is my code:</p>
  
  <pre><code>public class MainActivity extends Activity {
  
  
      String SrcPath = "/sdcard/maatraan.3gp";
  
         /** Called when the activity is first created. */
         @Override
         public void onCreate(Bundle savedInstanceState) {
             super.onCreate(savedInstanceState);
             setContentView(R.layout.activity_main);
             VideoView myVideoView = (VideoView)findViewById(R.id.myvideoview);
             myVideoView.setVideoURI(Uri.parse(SrcPath));
             myVideoView.setMediaController(new MediaController(this));
  
             myVideoView.requestFocus();
             myVideoView.start();
         }
  
      }
  </code></pre>
  
  <p>xml code:</p>
  
  <pre><code>&lt;VideoView
     android:id="@+id/myvideoview"
     android:layout_width="400dp"
     android:layout_height="400dp" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I define value for videoview height and width manually, if i play video in this height and width automatically change this height and width on video height and width i no need to change video view size, I need to change video size depanding upon then video view height and width screen size that's all....</p>