blob: 80140cd38c592a764c5df6fa369a1c9d2b923758 [file] [log] [blame]
Mindy Pereiraf6452882012-02-14 18:13:13 -08001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2012 Google Inc.
4 Licensed to The Android Open Source Project.
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17-->
18
19<com.android.mail.ui.FolderItemView
20 xmlns:android="http://schemas.android.com/apk/res/android"
21 android:layout_height="wrap_content"
22 android:layout_width="match_parent"
23 android:minHeight="@dimen/folder_list_minimum_height"
24 android:background="@drawable/folder_item">
25
26 <ImageView
Mindy Pereira465d03d2012-02-16 15:17:46 -080027 android:id="@+id/folder_parent_icon"
28 android:layout_width="16dip"
29 android:layout_height="16dip"
30 android:layout_alignParentBottom="true"
31 android:layout_alignParentRight="true"
32 android:visibility="gone"
33 android:src="@drawable/folder_parent_icon" />
34
Mindy Pereiraa5603f32012-03-08 16:15:15 -080035 <ImageView
36 android:id="@+id/folder_box"
37 style="@style/FolderItemIcon"
38 android:layout_alignParentLeft="true"
39 android:layout_alignParentTop="true" />
40
Mindy Pereiraf6452882012-02-14 18:13:13 -080041 <TextView
42 android:id="@+id/unread"
43 style="@style/UnreadCount"
44 android:layout_marginRight="@dimen/folder_list_item_right_margin"
Mindy Pereira465d03d2012-02-16 15:17:46 -080045 android:layout_alignWithParentIfMissing="true"
Mindy Pereiraf6452882012-02-14 18:13:13 -080046 android:layout_alignParentRight="true"
Mindy Pereira465d03d2012-02-16 15:17:46 -080047 android:layout_toLeftOf="@id/folder_parent_icon"
Mindy Pereiraf6452882012-02-14 18:13:13 -080048 android:textColor="@color/text_color_unread_invertible" />
49
50 <RelativeLayout
51 android:layout_width="match_parent"
52 android:layout_height="wrap_content"
53 android:layout_centerVertical="true"
54 android:layout_toLeftOf="@id/unread"
55 android:layout_marginLeft="@dimen/folder_list_item_left_margin"
56 android:layout_marginTop="@dimen/folder_swatch_height"
57 android:layout_marginBottom="@dimen/folder_swatch_height">
58
59 <TextView
60 android:id="@+id/name"
61 android:layout_height="wrap_content"
62 android:layout_width="match_parent"
63 android:maxLines="2"
64 android:ellipsize="end"
65 android:textColor="@color/text_color_primary_invertible"
66 android:textAppearance="?android:attr/textAppearanceMedium" />
67
68 <TextView
69 android:id="@+id/description"
70 android:layout_height="wrap_content"
71 android:layout_width="match_parent"
72 android:layout_below="@id/name"
73 android:textColor="@color/text_color_primary_invertible"
74 android:textAppearance="?android:attr/textAppearanceSmall"
75 android:visibility="gone" />
76
77 </RelativeLayout>
78
79</com.android.mail.ui.FolderItemView>