簡體   English   中英

在VideoView Android中播放視頻時,VideoView的屏幕尺寸正在更改

[英]Screen Size of VideoView is changing When playing video in VideoView Android

當我在視頻視圖中播放視頻時,但最初在視頻開始以高高度播放時效果很好,自動降低(改變了)。視頻視圖位於相對布局內,我需要Urgent。 感謝前進。

您好我也遇到過這個問題,但我將其設置為

<?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"
    android:orientation="horizontal" >
    <VideoView
        android:id="@+id/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" >
    </VideoView>
</RelativeLayout>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM