1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2018 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License 16 --> 17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:tools="http://schemas.android.com/tools" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:orientation="vertical"> 22 <LinearLayout 23 android:layout_width="match_parent" 24 android:layout_height="@dimen/rtt_banner_height" 25 android:background="?android:attr/colorPrimaryDark" 26 android:elevation="3dp" 27 android:orientation="horizontal"> 28 <ImageButton 29 android:id="@+id/rtt_end_call_button" 30 android:layout_width="@dimen/rtt_banner_height" 31 android:layout_height="@dimen/rtt_banner_height" 32 android:layout_marginStart="4dp" 33 android:layout_marginEnd="4dp" 34 android:padding="@dimen/rtt_banner_button_padding" 35 android:background="@android:color/transparent" 36 android:contentDescription="@string/incall_content_description_end_call" 37 android:scaleType="fitXY" 38 android:src="@drawable/quantum_ic_call_end_vd_theme_24" 39 android:tint="@color/dialer_end_call_button_color"/> 40 <LinearLayout 41 android:layout_width="0dp" 42 android:layout_height="match_parent" 43 android:layout_weight="1" 44 android:layout_marginTop="8dp" 45 android:layout_marginBottom="8dp" 46 android:orientation="vertical"> 47 <TextView 48 android:id="@+id/rtt_name_or_number" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:layout_gravity="center_horizontal" 52 android:fontFamily="sans-serif-medium" 53 android:includeFontPadding="false" 54 android:textColor="#FFFFFF" 55 android:textSize="20sp" 56 tools:text="Bruce Graham"/> 57 <Chronometer 58 android:id="@+id/rtt_timer" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:layout_gravity="center_horizontal" 62 android:fontFamily="sans-serif-medium" 63 android:includeFontPadding="false" 64 android:textColor="#FFFFFF" 65 android:textSize="14sp" 66 tools:text="00:09"/> 67 </LinearLayout> 68 <ImageButton 69 android:id="@+id/rtt_overflow_button" 70 android:layout_width="@dimen/rtt_banner_height" 71 android:layout_height="@dimen/rtt_banner_height" 72 android:layout_marginStart="8dp" 73 android:padding="@dimen/rtt_banner_button_padding" 74 android:background="@android:color/transparent" 75 android:contentDescription="@string/content_description_overflow" 76 android:scaleType="fitXY" 77 android:src="@drawable/quantum_ic_more_vert_vd_theme_24" 78 android:tint="?colorIconOnUnthemedDarkBackground"/> 79 80 </LinearLayout> 81 <FrameLayout 82 android:id="@id/rtt_on_hold_banner" 83 android:layout_width="match_parent" 84 android:layout_height="wrap_content"/> 85 <TextView 86 android:id="@+id/rtt_status_banner" 87 android:layout_width="match_parent" 88 android:layout_height="48dp" 89 android:paddingStart="16dp" 90 android:paddingEnd="16dp" 91 android:background="@android:color/white" 92 android:gravity="center_vertical" 93 android:textColor="#DD000000" 94 android:textSize="14sp"/> 95 96</LinearLayout>