开发者

Play Video view in full screen mode [duplicate]

This question already has answers here: 开发者_JS百科 playback video full screen (5 answers) Closed 8 years ago.

In Landscape mode video view is covering 3/4 part of screen . how to make it full screen?

Thanks


If you want to play video in full screen, then just add these changes in your Androidmanifest.xml file. Just add these two lines in android manifest file:

 android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 
 android:configChanges="orientation|screenSize"

Like in my androidmanifest.xml file i have added it

  <activity
        android:name="com.appliconic.straminglivevideo.MainActivity"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 
        android:configChanges="orientation|screenSize"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜