2011-11-22 86 views

回答

0

在XML定义试试你的VideoView作为

<?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"> 
<VideoView android:id="@+id/videoView1" android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_alignParentLeft="true" 
     android:layout_alignParentRight="true" 
     android:layout_alignParentTop="true" 
     android:layout_alignParentBottom="true"></VideoView> 
</RelativeLayout> 
+0

雅我也这样想,但我没有得到预期的结果。感谢您的答复 – user897936

+1

把你的XML代码有问题,所以其他人可以知道你在尝试什么,可以帮助你 – MKJParekh

0

把之前的setContentView这段代码你的活动

requestWindowFeature(Window.FEATURE_NO_TITLE); 
     getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
       WindowManager.LayoutParams.FLAG_FULLSCREEN); 

我认为它可以帮助你。

+0

我已经尝试过,但我无法得到结果。 – user897936

+0

请在这里给一些代码,以便我可以检查 – bindal