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<RelativeLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:layout_marginTop="@dimen/call_details_top_margin" 22 android:paddingTop="@dimen/contact_container_padding_top_start" 23 android:paddingBottom="@dimen/contact_container_padding_bottom_end" 24 android:paddingStart="@dimen/contact_container_padding_top_start" 25 android:paddingEnd="@dimen/contact_container_padding_bottom_end" 26 android:gravity="center_vertical" 27 android:orientation="vertical"> 28 29 <QuickContactBadge 30 android:id="@+id/quick_contact_photo" 31 android:layout_width="@dimen/call_details_contact_photo_size" 32 android:layout_height="@dimen/call_details_contact_photo_size" 33 android:padding="@dimen/call_details_contact_photo_padding" 34 android:focusable="true"/> 35 36 <LinearLayout 37 android:id="@+id/contact_information" 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:layout_alignParentTop="true" 41 android:layout_toEndOf="@+id/quick_contact_photo" 42 android:layout_toStartOf="@+id/call_back_button" 43 android:gravity="center_vertical" 44 android:minHeight="@dimen/call_details_contact_photo_size" 45 android:orientation="vertical"> 46 47 <com.android.dialer.widget.BidiTextView 48 android:id="@+id/contact_name" 49 style="@style/Dialer.TextAppearance.Primary" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:layout_marginStart="@dimen/photo_text_margin"/> 53 54 <com.android.dialer.widget.BidiTextView 55 android:id="@+id/phone_number" 56 style="@style/Dialer.TextAppearance.Secondary.Ellipsize" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:layout_marginStart="@dimen/photo_text_margin"/> 60 61 <TextView 62 android:id="@+id/network" 63 style="@style/Dialer.TextAppearance.Secondary.Ellipsize" 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content" 66 android:layout_marginStart="@dimen/photo_text_margin" 67 android:visibility="gone"/> 68 69 70 </LinearLayout> 71 72 <ImageView 73 android:id="@+id/call_back_button" 74 android:layout_width="@dimen/call_back_button_size" 75 android:layout_height="@dimen/call_back_button_size" 76 android:layout_alignParentEnd="true" 77 android:background="?android:attr/selectableItemBackgroundBorderless" 78 android:contentDescription="@string/call" 79 android:scaleType="center" 80 android:src="@drawable/quantum_ic_call_white_24" 81 android:tint="?colorIcon"/> 82 83 84 <RelativeLayout 85 android:id="@+id/assisted_dialing_container" 86 android:layout_width="match_parent" 87 android:layout_height="@dimen/ad_container_height" 88 android:layout_below="@+id/contact_information" 89 android:background="?android:attr/selectableItemBackground" 90 android:gravity="center_vertical"> 91 92 <ImageView 93 android:id="@+id/assisted_dialing_globe" 94 android:layout_width="@dimen/ad_icon_size" 95 android:layout_height="@dimen/ad_icon_size" 96 android:layout_marginTop="@dimen/ad_icon_margin_top_offset" 97 android:layout_marginStart="@dimen/ad_icon_margin_start_offset" 98 android:scaleType="fitCenter" 99 android:src="@drawable/quantum_ic_language_vd_theme_24" 100 android:tint="?colorIcon"/> 101 102 <TextView 103 android:id="@+id/assisted_dialing_text" 104 style="@style/Dialer.TextAppearance.Secondary.Ellipsize" 105 android:layout_width="match_parent" 106 android:layout_height="wrap_content" 107 android:layout_marginStart="@dimen/ad_text_margin_start" 108 android:layout_marginEnd="@dimen/ad_end_margin" 109 android:layout_toRightOf="@id/assisted_dialing_globe"/> 110 111 </RelativeLayout> 112 113</RelativeLayout>