Android VideoView crop_center

mamRelativeLayout

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_gravity="center"
    android:foregroundGravity="center"
    android:gravity="center"
    android:orientation="horizontal" >

    <VideoView
        android:id="@+id/videoViewPanel"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_gravity="center" 
        android:layout_centerInParent="true"/>

</RelativeLayout>

A ja muszę pokazać przycięte wideo na pełnym ekranie. Jeśli mógłbym porównać do ImageView, muszę go pokazać jako crop_center.

Jak mogę sprawić, by VideoView nie zmieniał automatycznie rozmiaru wideo w celu dopasowania do centrum, ale centrum kadrowania?

questionAnswers(3)

yourAnswerToTheQuestion