1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2017 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<FrameLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 xmlns:tools="http://schemas.android.com/tools" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent"> 23 24 <RelativeLayout 25 android:id="@+id/incall_ui_container" 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:clipChildren="false" 29 android:clipToPadding="false" 30 android:fitsSystemWindows="true"> 31 32 <LinearLayout 33 android:id="@id/incall_contact_grid" 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content" 36 android:layout_marginTop="12dp" 37 android:gravity="center_horizontal" 38 android:orientation="vertical"> 39 40 <ImageView 41 android:id="@id/contactgrid_avatar" 42 android:layout_width="@dimen/incall_avatar_size" 43 android:layout_height="@dimen/incall_avatar_size" 44 android:layout_marginBottom="8dp" 45 android:elevation="2dp"/> 46 47 <include 48 layout="@layout/incall_contactgrid_top_row" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:layout_marginStart="@dimen/incall_window_margin_horizontal" 52 android:layout_marginEnd="@dimen/incall_window_margin_horizontal"/> 53 54 <!-- We have to keep deprecated singleLine to allow long text being truncated with ellipses. 55 a bug --> 56 <com.android.incallui.autoresizetext.AutoResizeTextView 57 android:id="@id/contactgrid_contact_name" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:layout_marginBottom="4dp" 61 android:layout_marginStart="@dimen/incall_window_margin_horizontal" 62 android:layout_marginEnd="@dimen/incall_window_margin_horizontal" 63 android:singleLine="true" 64 android:textAppearance="@style/Dialer.Incall.TextAppearance.Large" 65 app:autoResizeText_minTextSize="28sp" 66 tools:ignore="Deprecated" 67 tools:text="Jake Peralta"/> 68 69 <include 70 layout="@layout/incall_contactgrid_bottom_row" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:layout_marginStart="@dimen/incall_window_margin_horizontal" 74 android:layout_marginEnd="@dimen/incall_window_margin_horizontal"/> 75 76 <FrameLayout 77 android:id="@+id/incall_location_holder" 78 android:layout_width="match_parent" 79 android:layout_height="match_parent"/> 80 81 <include 82 layout="@layout/device_number_row" 83 android:layout_width="match_parent" 84 android:layout_height="wrap_content"/> 85 </LinearLayout> 86 87 <com.android.dialer.widget.LockableViewPager 88 android:id="@+id/incall_pager" 89 android:layout_width="match_parent" 90 android:layout_height="match_parent" 91 android:layout_above="@+id/incall_paginator" 92 android:layout_below="@+id/incall_contact_grid" 93 android:layout_centerHorizontal="true"/> 94 95 <com.android.incallui.incall.impl.InCallPaginator 96 android:id="@+id/incall_paginator" 97 android:layout_width="@dimen/paginator_width" 98 android:layout_height="@dimen/paginator_height" 99 android:layout_above="@+id/incall_end_call" 100 android:layout_centerHorizontal="true" 101 android:visibility="gone"/> 102 103 <FrameLayout 104 android:id="@+id/incall_dialpad_container" 105 style="@style/DialpadContainer" 106 android:layout_width="match_parent" 107 android:layout_height="wrap_content" 108 android:layout_alignParentBottom="true" 109 android:clipChildren="false" 110 android:clipToPadding="false" 111 tools:background="@android:color/white" 112 tools:visibility="gone"/> 113 <ImageButton 114 android:id="@+id/incall_end_call" 115 style="@style/Incall.Button.End" 116 android:layout_marginTop="16dp" 117 android:layout_marginBottom="36dp" 118 android:layout_alignParentBottom="true" 119 android:layout_centerHorizontal="true" 120 android:contentDescription="@string/incall_content_description_end_call"/> 121 </RelativeLayout> 122 123 <FrameLayout 124 android:id="@id/incall_on_hold_banner" 125 android:layout_width="match_parent" 126 android:layout_height="wrap_content" 127 android:layout_gravity="top"/> 128</FrameLayout> 129