1
나는 안드로이드에서 일하고 있습니다. VideoView를 사용하고 있습니다. 방향이 세로 모드 일 때 세로로 늘어납니다. 비디오 화면이 세로로 늘어납니다.
이
내 XML입니다 : -
<RelativeLayout
android:id="@+id/lineartop"
android:layout_width="fill_parent"
android:layout_height="50dip"
android:layout_alignParentTop="true"
android:layout_marginTop="-5dip"
android:background="@drawable/tab" >
<TextView
android:id="@+id/fileNametitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:gravity="center"
android:textColor="#FFFFFF"
android:textSize="20dip" />
</RelativeLayout>
<VideoView
android:id="@+id/videoId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:fitsSystemWindows="true"
android:layout_marginBottom="5dip"
android:layout_centerHorizontal="true"
android:layout_above="@+id/VedioFooter"
android:layout_below="@+id/lineartop" />
<include android:id="@+id/VedioFooter"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
layout="@layout/bottom_layout_without_full_window_button" />
</RelativeLayout>
나는 또한 세로 모드에서 제대로 내 비디오를 보여주기 위해 무엇을해야하는지 나에게 제안 해주십시오.