blob: e23bacc566e96bc7aaf7f3fe9b519a8abf5eb00a [file] [log] [blame]
Scott Kennedy0e8dc842013-09-10 11:13:53 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 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 Sapperstein2b34b5e2014-01-23 11:17:48 -080016<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Scott Kennedy0e8dc842013-09-10 11:13:53 -070017 android:layout_width="match_parent"
Jin Cao4c594952014-08-19 16:32:42 -070018 android:layout_height="wrap_content"
Jin Cao4c594952014-08-19 16:32:42 -070019 android:orientation="vertical">
Scott Kennedy0e8dc842013-09-10 11:13:53 -070020
Scott Kennedy0e8dc842013-09-10 11:13:53 -070021 <LinearLayout
Jin Cao4c594952014-08-19 16:32:42 -070022 android:layout_width="match_parent"
Scott Kennedy0e8dc842013-09-10 11:13:53 -070023 android:layout_height="wrap_content"
Jin Cao4c594952014-08-19 16:32:42 -070024 android:minHeight="@dimen/folder_teaser_item_height"
Rohan Shahc8926ef2014-09-03 13:25:42 -070025 android:background="?android:attr/selectableItemBackground"
26 style="@style/FolderTeaserPaddingEndStyle">
Jin Cao4c594952014-08-19 16:32:42 -070027
28 <ImageView
29 android:id="@+id/nested_folder_icon"
30 android:layout_width="@dimen/folder_teaser_start_margin"
31 android:layout_height="wrap_content"
32 android:layout_gravity="center_vertical"
33 android:paddingLeft="24dp"
34 android:paddingRight="24dp"
35 android:src="@drawable/ic_drawer_folder_24dp" />
36
37 <LinearLayout
38 android:id="@+id/text_layout"
39 android:layout_width="0dp"
40 android:layout_height="wrap_content"
41 android:layout_weight="1"
42 android:layout_gravity="center_vertical"
Rohan Shah09820802014-08-22 08:46:51 -070043 android:orientation="vertical"
Rohan Shahc8926ef2014-09-03 13:25:42 -070044 style="@style/FolderTeaserPaddingEndStyle">
Jin Cao4c594952014-08-19 16:32:42 -070045
46 <TextView
47 android:id="@+id/folder_textView"
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:ellipsize="end"
51 android:singleLine="true"
52 android:textSize="16sp"
Rohan Shahc8926ef2014-09-03 13:25:42 -070053 android:textStyle="bold"
Jin Cao4c594952014-08-19 16:32:42 -070054 android:textColor="@color/folder_teaser_main_text"/>
55
56 <TextView
57 android:id="@+id/senders_textView"
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
60 android:ellipsize="end"
61 android:singleLine="true"
62 android:textSize="14sp"
Rohan Shahc8926ef2014-09-03 13:25:42 -070063 android:fontFamily="sans-serif-light"
Jin Cao4c594952014-08-19 16:32:42 -070064 android:textColor="@color/folder_teaser_sub_text" />
65
66 </LinearLayout>
Scott Kennedy0e8dc842013-09-10 11:13:53 -070067
68 <TextView
Rohan Shah6092c622014-08-21 10:38:35 -070069 android:id="@+id/unread_count_textView"
Scott Kennedy0e8dc842013-09-10 11:13:53 -070070 android:layout_width="wrap_content"
Jin Cao4c594952014-08-19 16:32:42 -070071 android:layout_height="match_parent"
Rohan Shah6092c622014-08-21 10:38:35 -070072 style="@style/FolderTeaserUnreadCountTextStyle" />
73
74 <TextView
75 android:id="@+id/unseen_count_textView"
76 android:layout_width="57sp"
77 android:layout_height="20sp"
78 style="@style/FolderTeaserUnseenCountTextStyle" />
Scott Kennedy0e8dc842013-09-10 11:13:53 -070079
80 </LinearLayout>
81
Jin Cao5b3b0a32014-08-22 17:52:56 -070082 <View style="@style/ConversationListDividerStyle" />
Scott Kennedy0e8dc842013-09-10 11:13:53 -070083
Andrew Sapperstein2b34b5e2014-01-23 11:17:48 -080084</LinearLayout>