Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2009 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
Andrew Lee | e177fe6 | 2015-06-05 13:01:09 -0700 | [diff] [blame] | 16 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 17 | android:id="@+id/call_detail" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 18 | android:layout_width="match_parent" |
Andrew Lee | e177fe6 | 2015-06-05 13:01:09 -0700 | [diff] [blame] | 19 | android:layout_height="match_parent" |
| 20 | android:orientation="vertical" |
| 21 | android:layout_alignParentStart="true" |
| 22 | android:layout_alignParentTop="true" |
| 23 | android:background="@color/background_dialer_call_log" > |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 24 | |
Andrew Lee | e177fe6 | 2015-06-05 13:01:09 -0700 | [diff] [blame] | 25 | <!-- Caller information "card" --> |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 26 | <LinearLayout |
Andrew Lee | e177fe6 | 2015-06-05 13:01:09 -0700 | [diff] [blame] | 27 | android:id="@+id/caller_information" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 28 | android:layout_width="match_parent" |
Andrew Lee | e177fe6 | 2015-06-05 13:01:09 -0700 | [diff] [blame] | 29 | android:layout_height="wrap_content" |
| 30 | android:paddingStart="@dimen/call_detail_horizontal_margin" |
| 31 | android:paddingTop="@dimen/call_detail_top_margin" |
| 32 | android:paddingBottom="@dimen/call_detail_bottom_margin" |
| 33 | android:baselineAligned="false" |
| 34 | android:orientation="horizontal" |
| 35 | android:translationZ="@dimen/call_detail_translation_z" |
| 36 | android:focusable="true" |
| 37 | android:background="@color/background_dialer_white" > |
| 38 | |
| 39 | <QuickContactBadge |
| 40 | android:id="@+id/quick_contact_photo" |
| 41 | android:layout_width="@dimen/contact_photo_size" |
| 42 | android:layout_height="@dimen/contact_photo_size" |
| 43 | android:layout_alignParentStart="true" |
| 44 | android:layout_gravity="top" |
| 45 | android:layout_marginTop="3dp" |
| 46 | android:focusable="true" /> |
| 47 | |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 48 | <LinearLayout |
Andrew Lee | e177fe6 | 2015-06-05 13:01:09 -0700 | [diff] [blame] | 49 | android:layout_width="0dp" |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 50 | android:layout_height="wrap_content" |
Andrew Lee | e177fe6 | 2015-06-05 13:01:09 -0700 | [diff] [blame] | 51 | android:layout_weight="1" |
| 52 | android:orientation="vertical" |
| 53 | android:gravity="center_vertical" |
| 54 | android:layout_marginStart="@dimen/call_detail_horizontal_margin"> |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 55 | |
Andrew Lee | e177fe6 | 2015-06-05 13:01:09 -0700 | [diff] [blame] | 56 | <TextView |
| 57 | android:id="@+id/caller_name" |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 58 | android:layout_width="wrap_content" |
| 59 | android:layout_height="wrap_content" |
Andrew Lee | e177fe6 | 2015-06-05 13:01:09 -0700 | [diff] [blame] | 60 | android:textColor="?attr/call_log_primary_text_color" |
| 61 | android:textSize="@dimen/call_log_primary_text_size" |
| 62 | android:includeFontPadding="false" |
| 63 | android:layout_marginBottom="5dp" |
| 64 | android:singleLine="true" /> |
| 65 | |
| 66 | <TextView |
| 67 | android:id="@+id/caller_number" |
| 68 | android:layout_width="wrap_content" |
| 69 | android:layout_height="wrap_content" |
| 70 | android:textColor="?attr/call_log_secondary_text_color" |
| 71 | android:textSize="@dimen/call_log_secondary_text_size" |
| 72 | android:layout_marginBottom="1dp" |
| 73 | android:singleLine="true" /> |
| 74 | |
| 75 | <TextView |
| 76 | android:id="@+id/phone_account_label" |
| 77 | android:layout_width="wrap_content" |
| 78 | android:layout_height="wrap_content" |
| 79 | android:textColor="?attr/call_log_secondary_text_color" |
| 80 | android:textSize="@dimen/call_log_secondary_text_size" |
| 81 | android:singleLine="true" |
| 82 | android:visibility="gone" /> |
| 83 | |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 84 | </LinearLayout> |
| 85 | |
Andrew Lee | e177fe6 | 2015-06-05 13:01:09 -0700 | [diff] [blame] | 86 | <ImageView |
| 87 | android:id="@+id/call_back_button" |
Andrew Lee | b0b57a1 | 2015-06-12 16:22:59 -0700 | [diff] [blame^] | 88 | android:layout_width="@dimen/call_log_list_item_primary_action_dimen" |
| 89 | android:layout_height="@dimen/call_log_list_item_primary_action_dimen" |
Andrew Lee | e177fe6 | 2015-06-05 13:01:09 -0700 | [diff] [blame] | 90 | android:layout_marginEnd="16dp" |
| 91 | android:background="?android:attr/selectableItemBackgroundBorderless" |
| 92 | android:src="@drawable/ic_call_24dp" |
| 93 | android:scaleType="center" |
Andrew Lee | b0b57a1 | 2015-06-12 16:22:59 -0700 | [diff] [blame^] | 94 | android:tint="@color/call_log_list_item_primary_action_icon_tint" |
Andrew Lee | e177fe6 | 2015-06-05 13:01:09 -0700 | [diff] [blame] | 95 | android:contentDescription="@string/description_call_log_call_action" |
| 96 | android:visibility="gone" /> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 97 | |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 98 | </LinearLayout> |
Andrew Lee | e177fe6 | 2015-06-05 13:01:09 -0700 | [diff] [blame] | 99 | |
| 100 | <!-- |
| 101 | The list view is under everything. |
| 102 | It contains a first header element which is hidden under the controls UI. |
| 103 | When scrolling, the controls move up until the name bar hits the top. |
| 104 | --> |
| 105 | <ListView |
| 106 | android:id="@+id/history" |
| 107 | android:layout_width="match_parent" |
| 108 | android:layout_height="fill_parent" /> |
| 109 | |
| 110 | </LinearLayout> |