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" |
| 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éraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 35 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 36 | <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éraud | da712a4 | 2015-11-22 23:45:26 -0500 | [diff] [blame] | 57 | android:layout_centerHorizontal="true" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 58 | android:layout_centerVertical="true" |
| 59 | android:layout_marginBottom="16dp" |
| 60 | android:orientation="vertical" |
Adrien Béraud | da712a4 | 2015-11-22 23:45:26 -0500 | [diff] [blame] | 61 | android:gravity="center_horizontal" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 62 | android:layout_gravity="center_vertical"> |
Adrien Béraud | 6c4cedb | 2015-12-11 14:34:20 -0500 | [diff] [blame] | 63 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 64 | <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éraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 74 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 75 | <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éraud | 7b6b20a | 2016-03-17 19:19:51 -0400 | [diff] [blame] | 82 | android:textColor="@color/text_color_primary_dark" |
| 83 | android:singleLine="true" /> |
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/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éraud | da712a4 | 2015-11-22 23:45:26 -0500 | [diff] [blame] | 98 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 99 | <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éraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 111 | android:layout_width="wrap_content" |
| 112 | android:layout_height="wrap_content" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 113 | 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éraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 151 | android:src="@drawable/ic_call_end_white_24dp" |
| 152 | app:backgroundTint="@color/error_red" |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 153 | app:elevation="6dp" |
| 154 | app:pressedTranslationZ="12dp" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 155 | app:rippleColor="@android:color/white" |
Adrien Béraud | 7b6b20a | 2016-03-17 19:19:51 -0400 | [diff] [blame] | 156 | android:layout_gravity="bottom|center_horizontal" |
| 157 | android:visibility="gone" /> |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 158 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 159 | <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éraud | da712a4 | 2015-11-22 23:45:26 -0500 | [diff] [blame] | 165 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 166 | <ViewSwitcher |
| 167 | android:id="@+id/security_switcher" |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 168 | android:layout_width="wrap_content" |
| 169 | android:layout_height="wrap_content" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 170 | 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éraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 187 | |
| 188 | <ImageView |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 189 | android:id="@+id/security_indicator" |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 190 | android:layout_width="wrap_content" |
| 191 | android:layout_height="wrap_content" |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 192 | 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éraud | 04d822c | 2015-04-02 17:44:36 -0400 | [diff] [blame] | 199 | |
Adrien Béraud | fb6341f | 2016-03-07 16:18:54 -0500 | [diff] [blame] | 200 | </RelativeLayout> |
| 201 | </FrameLayout> |
| 202 | </FrameLayout> |