Mindy Pereira | f645288 | 2012-02-14 18:13:13 -0800 | [diff] [blame] | 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_minimum_height" |
| 24 | android:background="@drawable/folder_item"> |
| 25 | |
| 26 | <ImageView |
Mindy Pereira | 465d03d | 2012-02-16 15:17:46 -0800 | [diff] [blame] | 27 | 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 Pereira | a5603f3 | 2012-03-08 16:15:15 -0800 | [diff] [blame] | 35 | <ImageView |
| 36 | android:id="@+id/folder_box" |
| 37 | style="@style/FolderItemIcon" |
| 38 | android:layout_alignParentLeft="true" |
| 39 | android:layout_alignParentTop="true" /> |
| 40 | |
Mindy Pereira | f645288 | 2012-02-14 18:13:13 -0800 | [diff] [blame] | 41 | <TextView |
| 42 | android:id="@+id/unread" |
| 43 | style="@style/UnreadCount" |
| 44 | android:layout_marginRight="@dimen/folder_list_item_right_margin" |
Mindy Pereira | 465d03d | 2012-02-16 15:17:46 -0800 | [diff] [blame] | 45 | android:layout_alignWithParentIfMissing="true" |
Mindy Pereira | f645288 | 2012-02-14 18:13:13 -0800 | [diff] [blame] | 46 | android:layout_alignParentRight="true" |
Mindy Pereira | 465d03d | 2012-02-16 15:17:46 -0800 | [diff] [blame] | 47 | android:layout_toLeftOf="@id/folder_parent_icon" |
Mindy Pereira | f645288 | 2012-02-14 18:13:13 -0800 | [diff] [blame] | 48 | 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> |