Fix video zoom on landscape

This commit is contained in:
Erwan Croze 2016-12-19 16:51:35 +01:00
parent 23a9f95d88
commit 79ae7fd963
2 changed files with 17 additions and 18 deletions

View file

@ -5,19 +5,10 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<fragment
android:id="@+id/status"
android:name="org.linphone.StatusFragment"
android:layout_width="match_parent"
android:layout_height="35dp"
tools:layout="@layout/status" />
<android.support.v4.widget.DrawerLayout <android.support.v4.widget.DrawerLayout
android:id="@+id/side_menu" android:id="@+id/side_menu"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
android:layout_below="@id/status">
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -53,7 +44,8 @@
android:id="@+id/active_call" android:id="@+id/active_call"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:visibility="visible"> android:visibility="visible"
android:layout_marginTop="40dp">
<LinearLayout <LinearLayout
android:id="@+id/active_call_info" android:id="@+id/active_call_info"
@ -246,7 +238,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"> android:layout_weight="1">
<ImageView <ImageView
android:id="@+id/chat" android:id="@+id/chat"
android:src="@drawable/footer_chat" android:src="@drawable/footer_chat"
@ -256,7 +248,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="15dp" android:padding="15dp"
android:layout_centerInParent="true"/> android:layout_centerInParent="true"/>
<TextView <TextView
android:id="@+id/missed_chats" android:id="@+id/missed_chats"
android:background="@drawable/history_chat_indicator" android:background="@drawable/history_chat_indicator"
@ -278,7 +270,7 @@
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_weight="1"> android:layout_weight="1">
<ImageView <ImageView
@ -288,7 +280,7 @@
android:contentDescription="@string/content_description_switch_video" android:contentDescription="@string/content_description_switch_video"
android:padding="20dp" android:padding="20dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"/> android:layout_height="wrap_content"/>
<ProgressBar <ProgressBar
android:id="@+id/video_in_progress" android:id="@+id/video_in_progress"
@ -490,4 +482,11 @@
</android.support.v4.widget.DrawerLayout> </android.support.v4.widget.DrawerLayout>
<fragment
android:id="@+id/status"
android:name="org.linphone.StatusFragment"
android:layout_width="match_parent"
android:layout_height="35dp"
tools:layout="@layout/status" />
</RelativeLayout> </RelativeLayout>

View file

@ -294,13 +294,13 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0.4" android:layout_weight="0.4"
android:padding="12dp"/> android:padding="12dp"/>
<RelativeLayout <RelativeLayout
android:background="@drawable/footer_button" android:background="@drawable/footer_button"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0.8"> android:layout_weight="0.8">
<ImageView <ImageView
android:id="@+id/chat" android:id="@+id/chat"
android:src="@drawable/footer_chat" android:src="@drawable/footer_chat"
@ -310,7 +310,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="15dp" android:padding="15dp"
android:layout_centerInParent="true"/> android:layout_centerInParent="true"/>
<TextView <TextView
android:id="@+id/missed_chats" android:id="@+id/missed_chats"
android:background="@drawable/history_chat_indicator" android:background="@drawable/history_chat_indicator"