blob: 656d3c714f24f67b77f2daf5482f25448eb6cf6e [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"
Adrien Béraudfb6341f2016-03-07 16:18:54 -050030 android:layout_gravity="center"
31 android:visibility="gone" />
Adrien Béraud04d822c2015-04-02 17:44:36 -040032
Adrien Béraudfb6341f2016-03-07 16:18:54 -050033 <FrameLayout
34 android:id="@+id/inner_layout"
35 android:layout_width="match_parent"
36 android:layout_height="match_parent"
37 android:fitsSystemWindows="true">
38
39 <SurfaceView
40 android:id="@+id/camera_preview_surface"
41 android:layout_width="160dp"
42 android:layout_height="120dp"
Alexandre Lision0b16eea2016-05-27 15:24:54 -040043 android:layout_gravity="bottom|end"
Adrien Béraudfb6341f2016-03-07 16:18:54 -050044 android:layout_margin="8dp"
Adrien Béraudfb6341f2016-03-07 16:18:54 -050045 android:visibility="gone" />
46
47 <LinearLayout
48 android:id="@+id/contact_bubble_layout"
49 android:layout_width="fill_parent"
50 android:layout_height="wrap_content"
Alexandre Lision0b16eea2016-05-27 15:24:54 -040051 android:layout_gravity="center_vertical"
Adrien Béraudfb6341f2016-03-07 16:18:54 -050052 android:layout_marginBottom="16dp"
Adrien Béraudda712a42015-11-22 23:45:26 -050053 android:gravity="center_horizontal"
Alexandre Lision0b16eea2016-05-27 15:24:54 -040054 android:orientation="vertical">
Adrien Béraud6c4cedb2015-12-11 14:34:20 -050055
Adrien Béraudfb6341f2016-03-07 16:18:54 -050056 <ImageView
57 android:id="@+id/contact_bubble"
58 android:layout_width="160dp"
59 android:layout_height="160dp"
Adrien Béraudfb6341f2016-03-07 16:18:54 -050060 android:layout_marginBottom="16dp"
61 android:layout_marginLeft="16dp"
62 android:layout_marginRight="16dp" />
Adrien Béraud04d822c2015-04-02 17:44:36 -040063
Adrien Béraudfb6341f2016-03-07 16:18:54 -050064 <TextView
65 android:id="@+id/contact_bubble_txt"
Alexandre Lision0b16eea2016-05-27 15:24:54 -040066 android:layout_width="match_parent"
Adrien Béraudfb6341f2016-03-07 16:18:54 -050067 android:layout_height="wrap_content"
Adrien Béraudfb6341f2016-03-07 16:18:54 -050068 android:gravity="center_horizontal"
Alexandre Lision0b16eea2016-05-27 15:24:54 -040069 android:singleLine="true"
Adrien Béraudfb6341f2016-03-07 16:18:54 -050070 android:textAppearance="?android:attr/textAppearanceLarge"
Alexandre Lision0b16eea2016-05-27 15:24:54 -040071 android:textColor="@color/text_color_primary_dark" />
Adrien Béraudda712a42015-11-22 23:45:26 -050072
Adrien Béraudfb6341f2016-03-07 16:18:54 -050073 <TextView
74 android:id="@+id/contact_bubble_num_txt"
Alexandre Lision0b16eea2016-05-27 15:24:54 -040075 android:layout_width="match_parent"
Adrien Béraudfb6341f2016-03-07 16:18:54 -050076 android:layout_height="wrap_content"
Adrien Béraudfb6341f2016-03-07 16:18:54 -050077 android:ellipsize="middle"
Alexandre Lision0b16eea2016-05-27 15:24:54 -040078 android:gravity="center_horizontal"
79 android:paddingEnd="8dp"
Adrien Béraudfb6341f2016-03-07 16:18:54 -050080 android:paddingStart="8dp"
Alexandre Lision0b16eea2016-05-27 15:24:54 -040081 android:singleLine="true"
82 android:textAppearance="?android:attr/textAppearanceMedium"
83 android:textColor="@color/text_color_secondary_dark" />
Adrien Béraudda712a42015-11-22 23:45:26 -050084
Adrien Béraudfb6341f2016-03-07 16:18:54 -050085 <TextView
86 android:id="@+id/call_status_txt"
87 android:layout_width="wrap_content"
88 android:layout_height="wrap_content"
Alexandre Lision0b16eea2016-05-27 15:24:54 -040089 android:textAppearance="?android:attr/textAppearanceMedium"
Adrien Béraudfb6341f2016-03-07 16:18:54 -050090 android:textColor="@color/text_color_primary_dark"
Alexandre Lision0b16eea2016-05-27 15:24:54 -040091 android:textSize="16sp" />
Adrien Béraudfb6341f2016-03-07 16:18:54 -050092
93 </LinearLayout>
94
95 <LinearLayout
Adrien Béraudb179bab2015-10-08 12:04:22 -040096 android:layout_width="wrap_content"
97 android:layout_height="wrap_content"
Alexandre Lision0b16eea2016-05-27 15:24:54 -040098 android:layout_gravity="bottom|center_horizontal"
Adrien Béraudfb6341f2016-03-07 16:18:54 -050099 android:layout_margin="12dp"
Alexandre Lision0b16eea2016-05-27 15:24:54 -0400100 android:orientation="horizontal">
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500101
102 <android.support.design.widget.FloatingActionButton
103 android:id="@+id/call_refuse_btn"
104 android:layout_width="wrap_content"
105 android:layout_height="wrap_content"
106 android:layout_margin="16dp"
107 android:contentDescription="@string/action_call_decline"
108 android:src="@drawable/ic_call_end_white_24dp"
109 app:backgroundTint="@color/error_red"
110 app:elevation="6dp"
111 app:pressedTranslationZ="12dp"
112 app:rippleColor="@android:color/white" />
113
114 <android.support.design.widget.FloatingActionButton
115 android:id="@+id/call_accept_btn"
116 android:layout_width="wrap_content"
117 android:layout_height="wrap_content"
118 android:layout_margin="16dp"
119 android:contentDescription="@string/action_call_accept"
120 android:src="@drawable/ic_call_white_24dp"
121 app:backgroundTint="#4caf50"
122 app:elevation="6dp"
123 app:pressedTranslationZ="12dp"
124 app:rippleColor="@android:color/white" />
125 </LinearLayout>
126
127 <android.support.design.widget.FloatingActionButton
128 android:id="@+id/call_hangup_btn"
129 android:layout_width="wrap_content"
130 android:layout_height="wrap_content"
Alexandre Lision0b16eea2016-05-27 15:24:54 -0400131 android:layout_gravity="bottom|center_horizontal"
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500132 android:layout_margin="28dp"
Adrien Béraudb179bab2015-10-08 12:04:22 -0400133 android:src="@drawable/ic_call_end_white_24dp"
Alexandre Lision0b16eea2016-05-27 15:24:54 -0400134 android:visibility="gone"
Adrien Béraudb179bab2015-10-08 12:04:22 -0400135 app:backgroundTint="@color/error_red"
Adrien Béraudb179bab2015-10-08 12:04:22 -0400136 app:elevation="6dp"
137 app:pressedTranslationZ="12dp"
Alexandre Lision0b16eea2016-05-27 15:24:54 -0400138 app:rippleColor="@android:color/white" />
Adrien Béraudb179bab2015-10-08 12:04:22 -0400139
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500140 <RelativeLayout
141 android:id="@+id/call_status_bar"
142 android:layout_width="match_parent"
143 android:layout_height="?android:attr/actionBarSize"
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500144 android:visibility="visible">
Adrien Béraudda712a42015-11-22 23:45:26 -0500145
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500146 <ViewSwitcher
147 android:id="@+id/security_switcher"
Adrien Béraudb179bab2015-10-08 12:04:22 -0400148 android:layout_width="wrap_content"
149 android:layout_height="wrap_content"
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500150 android:layout_centerVertical="true"
151 android:visibility="gone">
152
153 <Button
154 android:id="@+id/confirm_sas"
155 android:layout_width="wrap_content"
156 android:layout_height="wrap_content"
157 android:layout_gravity="center"
158 android:textColor="@android:color/white"
159 android:textSize="12sp" />
160
161 <ImageView
162 android:id="@+id/lock_image"
163 android:layout_width="wrap_content"
164 android:layout_height="wrap_content"
165 android:layout_gravity="end|center_vertical" />
166 </ViewSwitcher>
Adrien Béraudb179bab2015-10-08 12:04:22 -0400167
168 <ImageView
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500169 android:id="@+id/security_indicator"
Adrien Béraudb179bab2015-10-08 12:04:22 -0400170 android:layout_width="wrap_content"
171 android:layout_height="wrap_content"
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500172 android:layout_alignParentEnd="true"
173 android:layout_alignParentRight="true"
174 android:layout_centerVertical="true"
175 android:layout_margin="16dp"
176 android:src="@drawable/ic_lock_white_24dp"
177 android:tint="#4caf50"
178 android:visibility="gone" />
Adrien Béraud04d822c2015-04-02 17:44:36 -0400179
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500180 </RelativeLayout>
Romain Bertozziad8fd842016-05-11 14:30:35 -0400181
182 <EditText
Alexandre Lision0b16eea2016-05-27 15:24:54 -0400183 android:id="@+id/dialpad_edit_text"
Romain Bertozziad8fd842016-05-11 14:30:35 -0400184 android:layout_width="0dp"
185 android:layout_height="wrap_content"
Romain Bertozziad8fd842016-05-11 14:30:35 -0400186 android:ems="10"
Alexandre Lision0b16eea2016-05-27 15:24:54 -0400187 android:inputType="phone"
Romain Bertozziad8fd842016-05-11 14:30:35 -0400188 android:visibility="visible" />
189
Adrien Béraudfb6341f2016-03-07 16:18:54 -0500190 </FrameLayout>
191</FrameLayout>