blob: 5a6c446a228af0d806ecafc5d3ed130e915e4dae [file] [log] [blame]
Chiao Cheng94b10b52012-08-17 16:59:12 -07001<?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"
Yorke Leefb585072013-08-04 14:58:55 -070023 android:background="@drawable/bottom_border_background"
Chiao Cheng94b10b52012-08-17 16:59:12 -070024>
25 <!--
26 This layout may represent either a call log item or one of the
27 headers in the call log.
28
29 The former will make the @id/call_log_item visible and the
30 @id/call_log_header gone.
31
32 The latter will make the @id/call_log_header visible and the
33 @id/call_log_item gone
34 -->
35
36 <LinearLayout
37 android:id="@+id/primary_action_view"
38 android:layout_width="match_parent"
39 android:layout_height="wrap_content"
40 android:layout_centerVertical="true"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070041 android:layout_marginStart="@dimen/call_log_outer_margin"
42 android:layout_marginEnd="@dimen/call_log_outer_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -070043 android:orientation="horizontal"
44 android:gravity="center_vertical"
45 android:background="?android:attr/selectableItemBackground"
46 android:focusable="true"
47 android:nextFocusRight="@+id/secondary_action_icon"
48 android:nextFocusLeft="@+id/quick_contact_photo"
49 >
50 <QuickContactBadge
51 android:id="@+id/quick_contact_photo"
52 android:layout_width="@dimen/call_log_list_contact_photo_size"
53 android:layout_height="@dimen/call_log_list_contact_photo_size"
54 android:nextFocusRight="@id/primary_action_view"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070055 android:layout_alignParentStart="true"
Chiao Cheng94b10b52012-08-17 16:59:12 -070056 android:focusable="true"
57 />
58 <LinearLayout
Yorke Leefb585072013-08-04 14:58:55 -070059 android:layout_width="0dp"
Chiao Cheng94b10b52012-08-17 16:59:12 -070060 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 Meglioc341db02013-04-03 21:11:37 -070066 android:layout_marginStart="@dimen/call_log_inner_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -070067 >
68 <TextView
69 android:id="@+id/name"
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070072 android:layout_marginEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -070073 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
Chiao Cheng94b10b52012-08-17 16:59:12 -070083 android:id="@+id/label"
84 android:layout_width="wrap_content"
85 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -070086 android:layout_marginEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -070087 android:textColor="?attr/call_log_secondary_text_color"
88 android:textStyle="bold"
89 android:textSize="14sp"
90 android:singleLine="true"
91 android:ellipsize="marquee"
92 />
93 </LinearLayout>
94 <LinearLayout
95 android:id="@+id/call_type"
96 android:layout_width="wrap_content"
97 android:layout_height="wrap_content"
98 android:orientation="horizontal"
99 >
100 <view
101 class="com.android.dialer.calllog.CallTypeIconsView"
102 android:id="@+id/call_type_icons"
103 android:layout_width="wrap_content"
104 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700105 android:layout_marginEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700106 android:layout_gravity="center_vertical"
107 />
108 <TextView
109 android:id="@+id/call_count_and_date"
110 android:layout_width="wrap_content"
111 android:layout_height="wrap_content"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700112 android:layout_marginEnd="@dimen/call_log_icon_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700113 android:layout_gravity="center_vertical"
114 android:textColor="?attr/call_log_secondary_text_color"
115 android:textSize="14sp"
116 android:singleLine="true"
117 />
118 </LinearLayout>
119 </LinearLayout>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700120 <ImageButton
121 android:id="@+id/secondary_action_icon"
122 android:layout_width="@dimen/call_log_call_action_width"
123 android:layout_height="match_parent"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700124 android:paddingStart="@dimen/call_log_inner_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700125 android:paddingTop="@dimen/call_log_inner_margin"
126 android:paddingBottom="@dimen/call_log_inner_margin"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700127 android:paddingEnd="@dimen/call_log_inner_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700128 android:scaleType="center"
129 android:background="?android:attr/selectableItemBackground"
130 android:nextFocusLeft="@id/primary_action_view"
131 />
132 </LinearLayout>
133
134 <TextView
135 android:id="@+id/call_log_header"
136 style="@style/ContactListSeparatorTextViewStyle"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700137 android:layout_marginStart="@dimen/call_log_outer_margin"
138 android:layout_marginEnd="@dimen/call_log_outer_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700139 android:paddingTop="@dimen/call_log_inner_margin"
140 android:paddingBottom="@dimen/call_log_inner_margin" />
141
142 <View
143 android:id="@+id/call_log_divider"
144 android:layout_width="match_parent"
145 android:layout_height="1px"
Fabrice Di Meglioc341db02013-04-03 21:11:37 -0700146 android:layout_marginStart="@dimen/call_log_outer_margin"
147 android:layout_marginEnd="@dimen/call_log_outer_margin"
Chiao Cheng94b10b52012-08-17 16:59:12 -0700148 android:background="#55ffffff"
149 />
150</view>