blob: 6443674ad6f10f512e9166ea46c9b9611a698c09 [file] [log] [blame]
Adrien Béraudfb6341f2016-03-07 16:18:54 -05001<?xml version="1.0" encoding="utf-8"?><!--
2Copyright (C) 2004-2016 Savoir-faire Linux Inc.
3
4Author: Adrien Beraud <adrien.beraud@savoirfairelinux.com>
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 3 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program. If not, see <http://www.gnu.org/licenses/>.
18-->
19<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
Adrien Béraudda712a42015-11-22 23:45:26 -050020 xmlns:app="http://schemas.android.com/apk/res-auto"
Adrien Béraudb179bab2015-10-08 12:04:22 -040021 xmlns:tools="http://schemas.android.com/tools"
22 android:layout_width="match_parent"
23 android:layout_height="match_parent"
Adrien Béraudb179bab2015-10-08 12:04:22 -040024 tools:context=".client.CallActivity">
Adrien Béraud04d822c2015-04-02 17:44:36 -040025
Adrien Béraudfb6341f2016-03-07 16:18:54 -050026 <SurfaceView
27 android:id="@+id/video_preview_surface"
28 android:layout_width="match_parent"
29 android:layout_height="32dp"
30 android:layout_alignParentEnd="false"
31 android:layout_alignParentStart="false"
32 android:layout_centerInParent="true"
33 android:layout_gravity="center"
34 android:visibility="gone" />
Adrien Béraud04d822c2015-04-02 17:44:36 -040035
Adrien Béraudfb6341f2016-03-07 16:18:54 -050036 <FrameLayout
37 android:id="@+id/inner_layout"
38 android:layout_width="match_parent"
39 android:layout_height="match_parent"
40 android:fitsSystemWindows="true">
41
42 <SurfaceView
43 android:id="@+id/camera_preview_surface"
44 android:layout_width="160dp"
45 android:layout_height="120dp"
46 android:layout_alignParentBottom="true"
47 android:layout_alignParentEnd="true"
48 android:layout_alignParentRight="true"
49 android:layout_margin="8dp"
50 android:layout_gravity="bottom|right"
51 android:visibility="gone" />
52
53 <LinearLayout
54 android:id="@+id/contact_bubble_layout"
55 android:layout_width="fill_parent"
56 android:layout_height="wrap_content"
Adrien Béraudda712a42015-11-22 23:45:26 -050057 android:layout_centerHorizontal="true"
Adrien Béraudfb6341f2016-03-07 16:18:54 -050058 android:layout_centerVertical="true"
59 android:layout_marginBottom="16dp"
60 android:orientation="vertical"
Adrien Béraudda712a42015-11-22 23:45:26 -050061 android:gravity="center_horizontal"
Adrien Béraudfb6341f2016-03-07 16:18:54 -050062 android:layout_gravity="center_vertical">
Adrien Béraud6c4cedb2015-12-11 14:34:20 -050063
Adrien Béraudfb6341f2016-03-07 16:18:54 -050064 <ImageView
65 android:id="@+id/contact_bubble"
66 android:layout_width="160dp"
67 android:layout_height="160dp"
68 android:layout_alignParentStart="false"
69 android:layout_alignParentTop="true"
70 android:layout_centerHorizontal="true"
71 android:layout_marginBottom="16dp"
72 android:layout_marginLeft="16dp"
73 android:layout_marginRight="16dp" />
Adrien Béraud04d822c2015-04-02 17:44:36 -040074
Adrien Béraudfb6341f2016-03-07 16:18:54 -050075 <TextView
76 android:id="@+id/contact_bubble_txt"
77 android:layout_width="fill_parent"
78 android:layout_height="wrap_content"
79 android:layout_below="@+id/contact_bubble"
80 android:gravity="center_horizontal"
81 android:textAppearance="?android:attr/textAppearanceLarge"
Adrien Béraud7b6b20a2016-03-17 19:19:51 -040082 android:textColor="@color/text_color_primary_dark"
83 android:singleLine="true" />
Adrien Béraudda712a42015-11-22 23:45:26 -050084
Adrien Béraudfb6341f2016-03-07 16:18:54 -050085 <TextView
86 android:id="@+id/contact_bubble_num_txt"
87 android:layout_width="fill_parent"
88 android:layout_height="wrap_content"
89 android:layout_alignParentEnd="false"
90 android:layout_below="@+id/contact_bubble_txt"
91 android:gravity="center_horizontal"
92 android:textAppearance="?android:attr/textAppearanceMedium"
93 android:textColor="@color/text_color_secondary_dark"
94 android:singleLine="true"
95 android:ellipsize="middle"
96 android:paddingStart="8dp"
97 android:paddingEnd="8dp" />
Adrien Béraudda712a42015-11-22 23:45:26 -050098
Adrien Béraudfb6341f2016-03-07 16:18:54 -050099 <TextView
100 android:id="@+id/call_status_txt"
101 android:layout_width="wrap_content"
102 android:layout_height="wrap_content"
103 android:layout_centerVertical="true"
104 android:textColor="@color/text_color_primary_dark"
105 android:textSize="16sp"
106 android:textAppearance="?android:attr/textAppearanceMedium" />
107
108 </LinearLayout>
109
110 <LinearLayout
Adrien Béraudb179bab2015-10-08 12:04:22 -0400111 android:layout_width="wrap_content"
112 android:layout_height="wrap_content"
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500113 android:orientation="horizontal"
114 android:layout_alignParentBottom="true"
115 android:layout_centerHorizontal="true"
116 android:layout_margin="12dp"
117 android:layout_gravity="bottom|center_horizontal">
118
119 <android.support.design.widget.FloatingActionButton
120 android:id="@+id/call_refuse_btn"
121 android:layout_width="wrap_content"
122 android:layout_height="wrap_content"
123 android:layout_margin="16dp"
124 android:contentDescription="@string/action_call_decline"
125 android:src="@drawable/ic_call_end_white_24dp"
126 app:backgroundTint="@color/error_red"
127 app:elevation="6dp"
128 app:pressedTranslationZ="12dp"
129 app:rippleColor="@android:color/white" />
130
131 <android.support.design.widget.FloatingActionButton
132 android:id="@+id/call_accept_btn"
133 android:layout_width="wrap_content"
134 android:layout_height="wrap_content"
135 android:layout_margin="16dp"
136 android:contentDescription="@string/action_call_accept"
137 android:src="@drawable/ic_call_white_24dp"
138 app:backgroundTint="#4caf50"
139 app:elevation="6dp"
140 app:pressedTranslationZ="12dp"
141 app:rippleColor="@android:color/white" />
142 </LinearLayout>
143
144 <android.support.design.widget.FloatingActionButton
145 android:id="@+id/call_hangup_btn"
146 android:layout_width="wrap_content"
147 android:layout_height="wrap_content"
148 android:layout_alignParentBottom="true"
149 android:layout_centerHorizontal="true"
150 android:layout_margin="28dp"
Adrien Béraudb179bab2015-10-08 12:04:22 -0400151 android:src="@drawable/ic_call_end_white_24dp"
152 app:backgroundTint="@color/error_red"
Adrien Béraudb179bab2015-10-08 12:04:22 -0400153 app:elevation="6dp"
154 app:pressedTranslationZ="12dp"
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500155 app:rippleColor="@android:color/white"
Adrien Béraud7b6b20a2016-03-17 19:19:51 -0400156 android:layout_gravity="bottom|center_horizontal"
157 android:visibility="gone" />
Adrien Béraudb179bab2015-10-08 12:04:22 -0400158
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500159 <RelativeLayout
160 android:id="@+id/call_status_bar"
161 android:layout_width="match_parent"
162 android:layout_height="?android:attr/actionBarSize"
163 android:layout_alignParentTop="true"
164 android:visibility="visible">
Adrien Béraudda712a42015-11-22 23:45:26 -0500165
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500166 <ViewSwitcher
167 android:id="@+id/security_switcher"
Adrien Béraudb179bab2015-10-08 12:04:22 -0400168 android:layout_width="wrap_content"
169 android:layout_height="wrap_content"
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500170 android:layout_centerVertical="true"
171 android:visibility="gone">
172
173 <Button
174 android:id="@+id/confirm_sas"
175 android:layout_width="wrap_content"
176 android:layout_height="wrap_content"
177 android:layout_gravity="center"
178 android:textColor="@android:color/white"
179 android:textSize="12sp" />
180
181 <ImageView
182 android:id="@+id/lock_image"
183 android:layout_width="wrap_content"
184 android:layout_height="wrap_content"
185 android:layout_gravity="end|center_vertical" />
186 </ViewSwitcher>
Adrien Béraudb179bab2015-10-08 12:04:22 -0400187
188 <ImageView
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500189 android:id="@+id/security_indicator"
Adrien Béraudb179bab2015-10-08 12:04:22 -0400190 android:layout_width="wrap_content"
191 android:layout_height="wrap_content"
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500192 android:layout_alignParentEnd="true"
193 android:layout_alignParentRight="true"
194 android:layout_centerVertical="true"
195 android:layout_margin="16dp"
196 android:src="@drawable/ic_lock_white_24dp"
197 android:tint="#4caf50"
198 android:visibility="gone" />
Adrien Béraud04d822c2015-04-02 17:44:36 -0400199
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500200 </RelativeLayout>
201 </FrameLayout>
202</FrameLayout>