fullscreen - VideoView full screen even after fixed values in xml (Android 2.2) -


i facing strange situation in videoview have put in xml layout has fixed width/height, when same runs on android tablet running 2.2 of screen resolution (460*800), video goes full screen, , other views of same xml overlaps video.

i not want video go full screen, want of fixed width/height!

following xml layout, welcome.

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" >  <imageview     android:id="@+id/imgright"     android:layout_width="267px"     android:layout_height="fill_parent"     android:layout_alignparentbottom="true"     android:layout_alignparentright="true"     android:layout_alignparenttop="true" />  <imageview     android:id="@+id/imgbottom"     android:layout_width="533px"     android:layout_height="153px"     android:layout_alignparentbottom="true"     android:layout_alignparentleft="true"     android:layout_toleftof="@+id/imgright" />  <videoview     android:id="@+id/videoview"     android:layout_width="533px"     android:layout_height="307px"     android:layout_alignparentleft="true"     android:layout_alignparenttop="true"      />  </relativelayout> 

you can wrap videoview relative layout. set fixed px values relative layout , change videoview dimensions fill_parent:

<relativelayout     android:layout_width="533px"     android:layout_height="153px"      android:layout_alignparenttop="true"     android:layout_alignparentleft="true">      <videoview         android:id="@+id/videoview"         android:layout_width="fill_parent"         android:layout_height="fill_parent"          /> </relativelayout> 

Comments