Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?><!-- |
| 2 | Copyright (C) 2004-2016 Savoir-faire Linux Inc. |
| 3 | |
| 4 | Author: Adrien Beraud <adrien.beraud@savoirfairelinux.com> |
| 5 | |
| 6 | This program is free software; you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published by |
| 8 | the Free Software Foundation; either version 3 of the License, or |
| 9 | (at your option) any later version. |
| 10 | |
| 11 | This program is distributed in the hope that it will be useful, |
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | GNU General Public License for more details. |
| 15 | |
| 16 | You should have received a copy of the GNU General Public License |
| 17 | along 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éraud | da712a4 | 2015-11-22 23:45:26 -0500 | [diff] [blame] | 20 | xmlns:app="http://schemas.android.com/apk/res-auto" |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 21 | xmlns:tools="http://schemas.android.com/tools" |
| 22 | android:layout_width="match_parent" |
| 23 | android:layout_height="match_parent" |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 24 | tools:context=".client.CallActivity"> |
Adrien Béraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 25 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 26 | <SurfaceView |
| 27 | android:id="@+id/video_preview_surface" |
| 28 | android:layout_width="match_parent" |
| 29 | android:layout_height="32dp" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 30 | android:layout_gravity="center" |
| 31 | android:visibility="gone" /> |
Adrien Béraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 32 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 33 | <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 Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 43 | android:layout_gravity="bottom|end" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 44 | android:layout_margin="8dp" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 45 | 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 Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 51 | android:layout_gravity="center_vertical" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 52 | android:layout_marginBottom="16dp" |
Adrien Béraud | da712a4 | 2015-11-22 23:45:26 -0500 | [diff] [blame] | 53 | android:gravity="center_horizontal" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 54 | android:orientation="vertical"> |
Adrien Béraud | 6c4cedb | 2015-12-11 14:34:20 -0500 | [diff] [blame] | 55 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 56 | <ImageView |
| 57 | android:id="@+id/contact_bubble" |
| 58 | android:layout_width="160dp" |
| 59 | android:layout_height="160dp" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 60 | android:layout_marginBottom="16dp" |
| 61 | android:layout_marginLeft="16dp" |
| 62 | android:layout_marginRight="16dp" /> |
Adrien Béraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 63 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 64 | <TextView |
| 65 | android:id="@+id/contact_bubble_txt" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 66 | android:layout_width="match_parent" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 67 | android:layout_height="wrap_content" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 68 | android:gravity="center_horizontal" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 69 | android:singleLine="true" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 70 | android:textAppearance="?android:attr/textAppearanceLarge" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 71 | android:textColor="@color/text_color_primary_dark" /> |
Adrien Béraud | da712a4 | 2015-11-22 23:45:26 -0500 | [diff] [blame] | 72 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 73 | <TextView |
| 74 | android:id="@+id/contact_bubble_num_txt" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 75 | android:layout_width="match_parent" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 76 | android:layout_height="wrap_content" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 77 | android:ellipsize="middle" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 78 | android:gravity="center_horizontal" |
| 79 | android:paddingEnd="8dp" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 80 | android:paddingStart="8dp" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 81 | android:singleLine="true" |
| 82 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 83 | android:textColor="@color/text_color_secondary_dark" /> |
Adrien Béraud | da712a4 | 2015-11-22 23:45:26 -0500 | [diff] [blame] | 84 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 85 | <TextView |
| 86 | android:id="@+id/call_status_txt" |
| 87 | android:layout_width="wrap_content" |
| 88 | android:layout_height="wrap_content" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 89 | android:textAppearance="?android:attr/textAppearanceMedium" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 90 | android:textColor="@color/text_color_primary_dark" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 91 | android:textSize="16sp" /> |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 92 | |
| 93 | </LinearLayout> |
| 94 | |
| 95 | <LinearLayout |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 96 | android:layout_width="wrap_content" |
| 97 | android:layout_height="wrap_content" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 98 | android:layout_gravity="bottom|center_horizontal" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 99 | android:layout_margin="12dp" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 100 | android:orientation="horizontal"> |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 101 | |
| 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 Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 131 | android:layout_gravity="bottom|center_horizontal" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 132 | android:layout_margin="28dp" |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 133 | android:src="@drawable/ic_call_end_white_24dp" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 134 | android:visibility="gone" |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 135 | app:backgroundTint="@color/error_red" |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 136 | app:elevation="6dp" |
| 137 | app:pressedTranslationZ="12dp" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 138 | app:rippleColor="@android:color/white" /> |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 139 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 140 | <RelativeLayout |
| 141 | android:id="@+id/call_status_bar" |
| 142 | android:layout_width="match_parent" |
| 143 | android:layout_height="?android:attr/actionBarSize" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 144 | android:visibility="visible"> |
Adrien Béraud | da712a4 | 2015-11-22 23:45:26 -0500 | [diff] [blame] | 145 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 146 | <ViewSwitcher |
| 147 | android:id="@+id/security_switcher" |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 148 | android:layout_width="wrap_content" |
| 149 | android:layout_height="wrap_content" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 150 | 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éraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 167 | |
| 168 | <ImageView |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 169 | android:id="@+id/security_indicator" |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 170 | android:layout_width="wrap_content" |
| 171 | android:layout_height="wrap_content" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 172 | 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éraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 179 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 180 | </RelativeLayout> |
Romain Bertozzi | ad8fd84 | 2016-05-11 14:30:35 -0400 | [diff] [blame] | 181 | |
| 182 | <EditText |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 183 | android:id="@+id/dialpad_edit_text" |
Romain Bertozzi | ad8fd84 | 2016-05-11 14:30:35 -0400 | [diff] [blame] | 184 | android:layout_width="0dp" |
| 185 | android:layout_height="wrap_content" |
Romain Bertozzi | ad8fd84 | 2016-05-11 14:30:35 -0400 | [diff] [blame] | 186 | android:ems="10" |
Alexandre Lision | 0b16eea | 2016-05-27 15:24:54 -0400 | [diff] [blame] | 187 | android:inputType="phone" |
Romain Bertozzi | ad8fd84 | 2016-05-11 14:30:35 -0400 | [diff] [blame] | 188 | android:visibility="visible" /> |
| 189 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 190 | </FrameLayout> |
| 191 | </FrameLayout> |