minor optimizations and fixed render view size 80dp

This commit is contained in:
AndyScherzinger 2017-12-28 17:33:44 +01:00
parent e70751d945
commit 8b86ffa6d5
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
2 changed files with 20 additions and 19 deletions

View File

@ -26,15 +26,16 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:background="#000000"
tools:context=".activities.CallActivity">
<com.google.android.flexbox.FlexboxLayout
android:id="@+id/remote_renderers_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingStart="4dp"
android:paddingEnd="4dp"
android:animateLayoutChanges="true"
android:background="#000000"
android:visibility="invisible"
app:flexWrap="wrap"
app:alignItems="flex_end"
app:alignContent="flex_end"/>

View File

@ -20,24 +20,25 @@
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/relative_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical">
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/relative_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#000000"
android:padding="4dp">
<org.webrtc.SurfaceViewRenderer
android:id="@+id/surface_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
android:layout_width="80dp"
android:layout_height="80dp"/>
<ImageView
android:id="@+id/remote_video_off"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_above="@id/peer_nick_text_view"
android:layout_marginStart="8dp"
android:layout_below="@+id/surface_view"
android:layout_marginEnd="8dp"
android:layout_marginTop="4dp"
android:src="@drawable/ic_videocam_off_white_24px"
android:visibility="invisible"/>
@ -45,7 +46,8 @@
android:id="@+id/remote_audio_off"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_above="@id/peer_nick_text_view"
android:layout_below="@+id/surface_view"
android:layout_marginTop="4dp"
android:layout_toEndOf="@id/remote_video_off"
android:src="@drawable/ic_mic_off_white_24px"
android:visibility="invisible"/>
@ -54,11 +56,9 @@
android:id="@+id/peer_nick_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:layout_marginTop="4dp"
android:layout_marginStart="8dp"
android:layout_marginBottom="8dp"
android:textColor="@color/nc_white_color_complete"/>
android:layout_below="@id/remote_audio_off"
android:ellipsize="end"
android:textColor="@color/nc_white_color_complete"
tools:text="Test"/>
</RelativeLayout>
</RelativeLayout>