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 | |
| 17 | <view |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | class="com.android.dialer.calllog.CallLogListItemView" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="wrap_content" |
| 22 | android:orientation="vertical" |
| 23 | > |
| 24 | <!-- |
| 25 | This layout may represent either a call log item or one of the |
| 26 | headers in the call log. |
| 27 | |
| 28 | The former will make the @id/call_log_item visible and the |
| 29 | @id/call_log_header gone. |
| 30 | |
| 31 | The latter will make the @id/call_log_header visible and the |
| 32 | @id/call_log_item gone |
| 33 | --> |
| 34 | |
| 35 | <LinearLayout |
| 36 | android:id="@+id/primary_action_view" |
| 37 | android:layout_width="match_parent" |
| 38 | android:layout_height="wrap_content" |
| 39 | android:layout_centerVertical="true" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame^] | 40 | android:layout_marginStart="@dimen/call_log_outer_margin" |
| 41 | android:layout_marginEnd="@dimen/call_log_outer_margin" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 42 | android:orientation="horizontal" |
| 43 | android:gravity="center_vertical" |
| 44 | android:background="?android:attr/selectableItemBackground" |
| 45 | android:focusable="true" |
| 46 | android:nextFocusRight="@+id/secondary_action_icon" |
| 47 | android:nextFocusLeft="@+id/quick_contact_photo" |
| 48 | > |
| 49 | <QuickContactBadge |
| 50 | android:id="@+id/quick_contact_photo" |
| 51 | android:layout_width="@dimen/call_log_list_contact_photo_size" |
| 52 | android:layout_height="@dimen/call_log_list_contact_photo_size" |
| 53 | android:nextFocusRight="@id/primary_action_view" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame^] | 54 | android:layout_alignParentStart="true" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 55 | android:layout_centerVertical="true" |
| 56 | android:focusable="true" |
| 57 | /> |
| 58 | <LinearLayout |
| 59 | android:layout_width="wrap_content" |
| 60 | android:layout_height="wrap_content" |
| 61 | android:layout_weight="1" |
| 62 | android:paddingTop="@dimen/call_log_inner_margin" |
| 63 | android:paddingBottom="@dimen/call_log_inner_margin" |
| 64 | android:orientation="vertical" |
| 65 | android:gravity="center_vertical" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame^] | 66 | android:layout_marginStart="@dimen/call_log_inner_margin" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 67 | > |
| 68 | <TextView |
| 69 | android:id="@+id/name" |
| 70 | android:layout_width="wrap_content" |
| 71 | android:layout_height="wrap_content" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame^] | 72 | android:layout_marginEnd="@dimen/call_log_icon_margin" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 73 | android:textColor="?attr/call_log_primary_text_color" |
| 74 | android:textSize="18sp" |
| 75 | android:singleLine="true" |
| 76 | /> |
| 77 | <LinearLayout |
| 78 | android:layout_width="wrap_content" |
| 79 | android:layout_height="wrap_content" |
| 80 | android:orientation="horizontal" |
| 81 | > |
| 82 | <TextView |
| 83 | android:id="@+id/number" |
| 84 | android:layout_width="wrap_content" |
| 85 | android:layout_height="wrap_content" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame^] | 86 | android:layout_marginEnd="@dimen/call_log_icon_margin" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 87 | android:textColor="?attr/call_log_secondary_text_color" |
| 88 | android:textSize="14sp" |
| 89 | android:singleLine="true" |
| 90 | android:ellipsize="marquee" |
| 91 | /> |
| 92 | <TextView |
| 93 | android:id="@+id/label" |
| 94 | android:layout_width="wrap_content" |
| 95 | android:layout_height="wrap_content" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame^] | 96 | android:layout_marginEnd="@dimen/call_log_icon_margin" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 97 | android:textColor="?attr/call_log_secondary_text_color" |
| 98 | android:textStyle="bold" |
| 99 | android:textSize="14sp" |
| 100 | android:singleLine="true" |
| 101 | android:ellipsize="marquee" |
| 102 | /> |
| 103 | </LinearLayout> |
| 104 | <LinearLayout |
| 105 | android:id="@+id/call_type" |
| 106 | android:layout_width="wrap_content" |
| 107 | android:layout_height="wrap_content" |
| 108 | android:orientation="horizontal" |
| 109 | > |
| 110 | <view |
| 111 | class="com.android.dialer.calllog.CallTypeIconsView" |
| 112 | android:id="@+id/call_type_icons" |
| 113 | android:layout_width="wrap_content" |
| 114 | android:layout_height="wrap_content" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame^] | 115 | android:layout_marginEnd="@dimen/call_log_icon_margin" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 116 | android:layout_gravity="center_vertical" |
| 117 | /> |
| 118 | <TextView |
| 119 | android:id="@+id/call_count_and_date" |
| 120 | android:layout_width="wrap_content" |
| 121 | android:layout_height="wrap_content" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame^] | 122 | android:layout_marginEnd="@dimen/call_log_icon_margin" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 123 | android:layout_gravity="center_vertical" |
| 124 | android:textColor="?attr/call_log_secondary_text_color" |
| 125 | android:textSize="14sp" |
| 126 | android:singleLine="true" |
| 127 | /> |
| 128 | </LinearLayout> |
| 129 | </LinearLayout> |
| 130 | <View |
| 131 | android:id="@+id/divider" |
| 132 | android:layout_width="1px" |
| 133 | android:layout_height="@dimen/call_log_call_action_size" |
| 134 | android:background="@drawable/ic_divider_dashed_holo_dark" |
| 135 | android:layout_gravity="center_vertical" |
| 136 | /> |
| 137 | <ImageButton |
| 138 | android:id="@+id/secondary_action_icon" |
| 139 | android:layout_width="@dimen/call_log_call_action_width" |
| 140 | android:layout_height="match_parent" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame^] | 141 | android:paddingStart="@dimen/call_log_inner_margin" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 142 | android:paddingTop="@dimen/call_log_inner_margin" |
| 143 | android:paddingBottom="@dimen/call_log_inner_margin" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame^] | 144 | android:paddingEnd="@dimen/call_log_inner_margin" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 145 | android:scaleType="center" |
| 146 | android:background="?android:attr/selectableItemBackground" |
| 147 | android:nextFocusLeft="@id/primary_action_view" |
| 148 | /> |
| 149 | </LinearLayout> |
| 150 | |
| 151 | <TextView |
| 152 | android:id="@+id/call_log_header" |
| 153 | style="@style/ContactListSeparatorTextViewStyle" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame^] | 154 | android:layout_marginStart="@dimen/call_log_outer_margin" |
| 155 | android:layout_marginEnd="@dimen/call_log_outer_margin" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 156 | android:paddingTop="@dimen/call_log_inner_margin" |
| 157 | android:paddingBottom="@dimen/call_log_inner_margin" /> |
| 158 | |
| 159 | <View |
| 160 | android:id="@+id/call_log_divider" |
| 161 | android:layout_width="match_parent" |
| 162 | android:layout_height="1px" |
Fabrice Di Meglio | c341db0 | 2013-04-03 21:11:37 -0700 | [diff] [blame^] | 163 | android:layout_marginStart="@dimen/call_log_outer_margin" |
| 164 | android:layout_marginEnd="@dimen/call_log_outer_margin" |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 165 | android:background="#55ffffff" |
| 166 | /> |
| 167 | </view> |