Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2007 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 | --> |
| 16 | |
Andrew Lee | 13f6fd0 | 2014-05-21 18:05:56 -0700 | [diff] [blame] | 17 | <view xmlns:android="http://schemas.android.com/apk/res/android" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 18 | class="com.android.dialer.calllog.CallLogListItemView" |
Andrew Lee | 13f6fd0 | 2014-05-21 18:05:56 -0700 | [diff] [blame] | 19 | android:id="@+id/call_log_list_item" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="wrap_content" |
| 22 | android:orientation="vertical" |
Andrew Lee | 13f6fd0 | 2014-05-21 18:05:56 -0700 | [diff] [blame] | 23 | android:background="@color/background_dialer_list_items" > |
| 24 | |
Tyler Gunn | 4dfd712 | 2014-05-14 15:12:42 -0700 | [diff] [blame] | 25 | <!-- Day group heading. Used to show a "today", "yesterday", "last week" or "other" heading |
| 26 | above a group of call log entries. --> |
| 27 | <TextView |
| 28 | android:id="@+id/call_log_day_group_label" |
| 29 | android:layout_width="match_parent" |
| 30 | android:layout_height="wrap_content" |
Tyler Gunn | f3f706a | 2014-05-22 16:36:14 -0700 | [diff] [blame] | 31 | android:layout_marginStart="@dimen/call_log_start_margin" |
Tyler Gunn | 4dfd712 | 2014-05-14 15:12:42 -0700 | [diff] [blame] | 32 | android:layout_marginEnd="@dimen/call_log_outer_margin" |
Andrew Lee | e1c0396 | 2014-06-03 14:47:06 -0700 | [diff] [blame] | 33 | android:fontFamily="sans-serif-medium" |
Tyler Gunn | 4dfd712 | 2014-05-14 15:12:42 -0700 | [diff] [blame] | 34 | android:textColor="?attr/call_log_secondary_text_color" |
| 35 | android:textSize="@dimen/call_log_secondary_text_size" |
Andrew Lee | 64c4552 | 2014-06-11 18:04:14 -0700 | [diff] [blame] | 36 | android:paddingTop="@dimen/call_log_day_group_padding_top" |
| 37 | android:paddingBottom="@dimen/call_log_day_group_padding_bottom" /> |
Andrew Lee | 13f6fd0 | 2014-05-21 18:05:56 -0700 | [diff] [blame] | 38 | |
Tyler Gunn | c0f6db9 | 2014-02-26 08:28:53 -0800 | [diff] [blame] | 39 | <!-- Linear layout to separate the primary area containing the contact badge and caller |
| 40 | information and the secondary action (call details / play voicemail). --> |
| 41 | <LinearLayout |
Tyler Gunn | 4dfd712 | 2014-05-14 15:12:42 -0700 | [diff] [blame] | 42 | android:id="@+id/call_log_row" |
Tyler Gunn | c0f6db9 | 2014-02-26 08:28:53 -0800 | [diff] [blame] | 43 | android:layout_width="match_parent" |
| 44 | android:layout_height="wrap_content" |
Yorke Lee | 4cde566 | 2014-04-18 17:14:58 -0700 | [diff] [blame] | 45 | android:baselineAligned="false" |
Tyler Gunn | 146a4cd | 2014-05-05 16:51:42 -0700 | [diff] [blame] | 46 | android:orientation="vertical" |
Andrew Lee | 13f6fd0 | 2014-05-21 18:05:56 -0700 | [diff] [blame] | 47 | android:gravity="center_vertical" > |
Tyler Gunn | c0f6db9 | 2014-02-26 08:28:53 -0800 | [diff] [blame] | 48 | |
| 49 | <!-- Primary area containing the contact badge and caller information --> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 50 | <LinearLayout |
| 51 | android:id="@+id/primary_action_view" |
Tyler Gunn | 8bfb24b | 2014-05-13 10:16:08 -0700 | [diff] [blame] | 52 | android:background="@drawable/call_log_background" |
Tyler Gunn | 146a4cd | 2014-05-05 16:51:42 -0700 | [diff] [blame] | 53 | android:layout_width="match_parent" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 54 | android:layout_height="wrap_content" |
Tyler Gunn | f3f706a | 2014-05-22 16:36:14 -0700 | [diff] [blame] | 55 | android:paddingStart="@dimen/call_log_start_margin" |
Andrew Lee | 13f6fd0 | 2014-05-21 18:05:56 -0700 | [diff] [blame] | 56 | android:paddingEnd="@dimen/call_log_outer_margin" |
Tyler Gunn | c26986e | 2014-05-16 15:39:29 -0700 | [diff] [blame] | 57 | android:paddingTop="@dimen/call_log_outer_margin" |
Andrew Lee | 13f6fd0 | 2014-05-21 18:05:56 -0700 | [diff] [blame] | 58 | android:paddingBottom="@dimen/call_log_outer_margin" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 59 | android:orientation="horizontal" |
| 60 | android:gravity="center_vertical" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 61 | android:focusable="true" |
Tyler Gunn | 146a4cd | 2014-05-05 16:51:42 -0700 | [diff] [blame] | 62 | android:nextFocusRight="@+id/call_back_action" |
Andrew Lee | 13f6fd0 | 2014-05-21 18:05:56 -0700 | [diff] [blame] | 63 | android:nextFocusLeft="@+id/quick_contact_photo" > |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 64 | <QuickContactBadge |
| 65 | android:id="@+id/quick_contact_photo" |
Tyler Gunn | 18164c8 | 2014-06-09 10:20:57 -0700 | [diff] [blame] | 66 | android:layout_width="@dimen/contact_photo_size" |
| 67 | android:layout_height="@dimen/contact_photo_size" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 68 | android:nextFocusRight="@id/primary_action_view" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame] | 69 | android:layout_alignParentStart="true" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 70 | android:focusable="true" |
Tyler Gunn | c0f6db9 | 2014-02-26 08:28:53 -0800 | [diff] [blame] | 71 | /> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 72 | <LinearLayout |
Yorke Lee | fb58507 | 2013-08-04 14:58:55 -0700 | [diff] [blame] | 73 | android:layout_width="0dp" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 74 | android:layout_height="wrap_content" |
| 75 | android:layout_weight="1" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 76 | android:orientation="vertical" |
| 77 | android:gravity="center_vertical" |
Tyler Gunn | f3f706a | 2014-05-22 16:36:14 -0700 | [diff] [blame] | 78 | android:layout_marginStart="@dimen/call_log_start_margin" |
Tyler Gunn | c0f6db9 | 2014-02-26 08:28:53 -0800 | [diff] [blame] | 79 | > |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 80 | <TextView |
| 81 | android:id="@+id/name" |
| 82 | android:layout_width="wrap_content" |
| 83 | android:layout_height="wrap_content" |
Andrew Lee | c987e00 | 2014-05-29 13:07:53 -0700 | [diff] [blame] | 84 | android:layout_marginBottom="@dimen/call_log_name_margin_bottom" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame] | 85 | android:layout_marginEnd="@dimen/call_log_icon_margin" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 86 | android:textColor="?attr/call_log_primary_text_color" |
Tyler Gunn | 146a4cd | 2014-05-05 16:51:42 -0700 | [diff] [blame] | 87 | android:textSize="@dimen/call_log_primary_text_size" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 88 | android:singleLine="true" |
Tyler Gunn | c0f6db9 | 2014-02-26 08:28:53 -0800 | [diff] [blame] | 89 | /> |
Tyler Gunn | 146a4cd | 2014-05-05 16:51:42 -0700 | [diff] [blame] | 90 | <TextView |
| 91 | android:id="@+id/voicemail_transcription" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 92 | android:layout_width="wrap_content" |
| 93 | android:layout_height="wrap_content" |
Tyler Gunn | 146a4cd | 2014-05-05 16:51:42 -0700 | [diff] [blame] | 94 | android:layout_marginEnd="@dimen/call_log_icon_margin" |
| 95 | android:textColor="?attr/call_log_secondary_text_color" |
| 96 | android:textSize="@dimen/call_log_secondary_text_size" |
| 97 | android:singleLine="true" |
| 98 | android:ellipsize="marquee" |
Yorke Lee | 654df8f | 2014-05-12 16:43:36 -0700 | [diff] [blame] | 99 | android:visibility="gone" |
Tyler Gunn | 146a4cd | 2014-05-05 16:51:42 -0700 | [diff] [blame] | 100 | /> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 101 | <LinearLayout |
| 102 | android:id="@+id/call_type" |
| 103 | android:layout_width="wrap_content" |
| 104 | android:layout_height="wrap_content" |
| 105 | android:orientation="horizontal" |
Tyler Gunn | c0f6db9 | 2014-02-26 08:28:53 -0800 | [diff] [blame] | 106 | > |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 107 | <view |
| 108 | class="com.android.dialer.calllog.CallTypeIconsView" |
| 109 | android:id="@+id/call_type_icons" |
| 110 | android:layout_width="wrap_content" |
| 111 | android:layout_height="wrap_content" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame] | 112 | android:layout_marginEnd="@dimen/call_log_icon_margin" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 113 | android:layout_gravity="center_vertical" |
Tyler Gunn | c0f6db9 | 2014-02-26 08:28:53 -0800 | [diff] [blame] | 114 | /> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 115 | <TextView |
Tyler Gunn | 146a4cd | 2014-05-05 16:51:42 -0700 | [diff] [blame] | 116 | android:id="@+id/call_location_and_date" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 117 | android:layout_width="wrap_content" |
| 118 | android:layout_height="wrap_content" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame] | 119 | android:layout_marginEnd="@dimen/call_log_icon_margin" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 120 | android:layout_gravity="center_vertical" |
| 121 | android:textColor="?attr/call_log_secondary_text_color" |
Tyler Gunn | 146a4cd | 2014-05-05 16:51:42 -0700 | [diff] [blame] | 122 | android:textSize="@dimen/call_log_secondary_text_size" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 123 | android:singleLine="true" |
Tyler Gunn | c0f6db9 | 2014-02-26 08:28:53 -0800 | [diff] [blame] | 124 | /> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 125 | </LinearLayout> |
| 126 | </LinearLayout> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 127 | </LinearLayout> |
Tyler Gunn | 146a4cd | 2014-05-05 16:51:42 -0700 | [diff] [blame] | 128 | |
| 129 | <!-- Viewstub with additional expandable actions for a call log entry --> |
| 130 | <ViewStub android:id="@+id/call_log_entry_actions_stub" |
| 131 | android:inflatedId="@+id/call_log_entry_actions" |
| 132 | android:layout="@layout/call_log_list_item_actions" |
| 133 | android:layout_width="match_parent" |
| 134 | android:layout_height="wrap_content"/> |
Tyler Gunn | c0f6db9 | 2014-02-26 08:28:53 -0800 | [diff] [blame] | 135 | </LinearLayout> |
Chiao Cheng | c5b6a69 | 2013-09-24 15:40:43 -0700 | [diff] [blame] | 136 | <!-- Displays the extra link section --> |
| 137 | <ViewStub android:id="@+id/link_stub" |
| 138 | android:layout="@layout/call_log_list_item_extra" |
| 139 | android:layout_width="match_parent" |
| 140 | android:layout_height="wrap_content"/> |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 141 | </view> |