1<?xml version="1.0" encoding="utf-8"?>
2<layout xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:app="http://schemas.android.com/apk/res-auto"
4 xmlns:tools="http://schemas.android.com/tools">
5
6 <RelativeLayout
7 android:layout_width="match_parent"
8 android:layout_height="match_parent"
9 android:background="?color_background_secondary">
10
11 <android.support.design.widget.AppBarLayout
12 android:id="@+id/app_bar_layout"
13 android:layout_width="match_parent"
14 android:layout_height="wrap_content">
15
16 <android.support.v7.widget.Toolbar
17 android:id="@+id/toolbar"
18 android:layout_width="match_parent"
19 android:layout_height="?attr/actionBarSize"
20 android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
21 app:popupTheme="?popupOverlayStyle" />
22
23 <TextView
24 android:id="@+id/with"
25 android:layout_width="wrap_content"
26 android:layout_height="wrap_content"
27 android:layout_below="@id/status"
28 android:layout_marginLeft="16dp"
29 android:layout_marginTop="0dp"
30 android:layout_marginRight="16dp"
31 android:layout_marginBottom="32dp"
32 android:textAppearance="@style/TextAppearance.Conversations.Display2"
33 android:textColor="@color/white"
34 tools:text="Juliet Capulet" />
35
36 </android.support.design.widget.AppBarLayout>
37
38 <org.webrtc.SurfaceViewRenderer
39 android:id="@+id/remote_video"
40 android:layout_width="match_parent"
41 android:layout_height="100dp"
42 android:layout_below="@+id/app_bar_layout"
43 android:layout_alignParentStart="true"
44 android:layout_alignParentLeft="true"
45 android:layout_alignParentBottom="true"
46 android:visibility="visible" />
47
48 <org.webrtc.SurfaceViewRenderer
49 android:id="@+id/local_video"
50 android:layout_width="80dp"
51 android:layout_height="128dp"
52 android:layout_below="@+id/app_bar_layout"
53 android:layout_alignParentEnd="true"
54 android:layout_alignParentRight="true"
55 android:layout_marginTop="24dp"
56 android:layout_marginEnd="24dp"
57 android:layout_marginRight="24dp"
58 android:visibility="visible" />
59
60
61 <RelativeLayout
62 android:layout_width="288dp"
63 android:layout_height="wrap_content"
64 android:layout_alignParentBottom="true"
65 android:layout_centerHorizontal="true"
66 android:layout_marginBottom="24dp">
67
68 <android.support.design.widget.FloatingActionButton
69 android:id="@+id/reject_call"
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
72 android:layout_alignParentStart="true"
73 android:layout_alignParentLeft="true"
74 android:layout_centerVertical="true"
75 android:layout_margin="16dp"
76 android:src="@drawable/ic_call_end_white_48dp"
77 android:visibility="gone"
78 app:backgroundTint="@color/red700"
79 app:elevation="4dp"
80 app:fabCustomSize="72dp"
81 app:maxImageSize="36dp"
82 tools:visibility="visible" />
83
84 <android.support.design.widget.FloatingActionButton
85 android:id="@+id/in_call_action_left"
86 android:layout_width="wrap_content"
87 android:layout_height="wrap_content"
88 android:layout_centerVertical="true"
89 android:layout_margin="16dp"
90 android:layout_toStartOf="@+id/end_call"
91 android:layout_toLeftOf="@+id/end_call"
92 android:visibility="gone"
93 app:backgroundTint="?color_background_primary"
94 app:elevation="4dp"
95 app:fabSize="mini"
96 app:tint="?attr/icon_tint" />
97
98 <android.support.design.widget.FloatingActionButton
99 android:id="@+id/end_call"
100 android:layout_width="wrap_content"
101 android:layout_height="wrap_content"
102 android:layout_centerInParent="true"
103 android:layout_margin="16dp"
104 android:src="@drawable/ic_call_end_white_48dp"
105 android:visibility="visible"
106 app:backgroundTint="@color/red700"
107 app:elevation="4dp"
108 app:fabCustomSize="72dp"
109 app:maxImageSize="36dp" />
110
111 <android.support.design.widget.FloatingActionButton
112 android:id="@+id/in_call_action_right"
113 android:layout_width="wrap_content"
114 android:layout_height="wrap_content"
115 android:layout_centerVertical="true"
116 android:layout_margin="16dp"
117 android:layout_toEndOf="@+id/end_call"
118 android:layout_toRightOf="@+id/end_call"
119 android:visibility="gone"
120 app:backgroundTint="?color_background_primary"
121 app:elevation="4dp"
122 app:fabSize="mini"
123 app:tint="?attr/icon_tint" />
124
125
126 <android.support.design.widget.FloatingActionButton
127 android:id="@+id/accept_call"
128 android:layout_width="wrap_content"
129 android:layout_height="wrap_content"
130 android:layout_alignParentEnd="true"
131 android:layout_alignParentRight="true"
132 android:layout_centerVertical="true"
133 android:layout_margin="16dp"
134 android:src="@drawable/ic_call_white_48dp"
135 android:visibility="gone"
136 app:backgroundTint="@color/green700"
137 app:elevation="4dp"
138 app:fabCustomSize="72dp"
139 app:maxImageSize="36dp"
140 tools:visibility="visible" />
141 </RelativeLayout>
142
143 </RelativeLayout>
144</layout>