1 <?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_item_minimum_height" 24 android:background="@drawable/folder_item" 25 android:paddingLeft="48dp"> 26 27 <ImageView 28 android:id="@+id/folder_parent_icon" 29 android:layout_width="16dip" 30 android:layout_height="16dip" 31 android:layout_alignParentBottom="true" 32 android:layout_alignParentRight="true" 33 android:visibility="gone" 34 android:src="@drawable/folder_parent_icon" /> 35 36 <ImageView 37 android:id="@+id/color_block" 38 style="@style/FolderItemIcon" 39 android:layout_alignParentLeft="true" 40 android:layout_alignParentTop="true" /> 41 42 <TextView 43 android:id="@+id/unread" 44 style="@style/UnreadCountWithMarginEndStyle" 45 android:layout_alignWithParentIfMissing="true" 46 android:layout_alignParentRight="true" 47 android:layout_toLeftOf="@id/folder_parent_icon" 48 android:textColor="@color/folder_name_color_primary_invertible" /> 49 50 <TextView 51 android:id="@+id/unseen" 52 style="@style/UnseenCountWithMarginEndStyle" 53 android:layout_alignWithParentIfMissing="true" 54 android:layout_alignParentRight="true" 55 android:layout_toLeftOf="@id/folder_parent_icon" /> 56 57 <RelativeLayout 58 android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:layout_centerVertical="true" 61 android:layout_toLeftOf="@id/unread" 62 android:layout_alignWithParentIfMissing="true" 63 android:layout_marginTop="@dimen/folder_swatch_height" 64 android:layout_marginBottom="@dimen/folder_swatch_height" 65 style="@style/FolderListItemStartStyle" > 66 67 <ImageView 68 android:id="@+id/folder_icon" 69 android:layout_width="20dp" 70 android:layout_height="20dp" 71 android:layout_centerVertical="true" 72 android:layout_marginRight="10dp" 73 android:visibility="gone" /> 74 75 <TextView 76 android:id="@+id/name" 77 android:layout_height="wrap_content" 78 android:layout_width="match_parent" 79 android:layout_toRightOf="@id/folder_icon" 80 android:maxLines="2" 81 android:ellipsize="end" 82 android:textColor="@color/folder_name_color_primary_invertible" 83 android:textAppearance="?android:attr/textAppearanceMedium" /> 84 85 <TextView 86 android:id="@+id/description" 87 android:layout_height="wrap_content" 88 android:layout_width="match_parent" 89 android:layout_below="@id/name" 90 android:layout_toRightOf="@id/folder_icon" 91 android:textColor="@color/folder_name_color_primary_invertible" 92 android:textAppearance="?android:attr/textAppearanceSmall" 93 android:visibility="gone" /> 94 95 </RelativeLayout> 96 97 </com.android.mail.ui.FolderItemView> 98