I have two TextureViews to display videos. When I call for both setRotation(90) method it rotated them but every view do not fit the screen. The picture below show how it looks like. I need to use only landscape screen orientation.
How I can handle it?
This is my layout file
android:layout_width="match_parent"
android:layout_height="match_parent"
android:baselineAligned="false"
android:orientation="horizontal">
android:id="@+id/video_layout_1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
android:id="@+id/video_screen_1"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:id="@+id/video_layout_2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
android:id="@+id/video_screen_2"
android:layout_width="match_parent"
android:layout_height="match_parent" />