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" |
Rohan Shah | 6ba9620 | 2014-09-02 14:40:21 -0700 | [diff] [blame] | 23 | android:background="@drawable/folder_item" |
| 24 | android:gravity="center_vertical" |
Rohan Shah | 671133b | 2013-03-26 14:48:10 -0700 | [diff] [blame] | 25 | android:minHeight="@dimen/folder_list_item_minimum_height" |
Rohan Shah | 6ba9620 | 2014-09-02 14:40:21 -0700 | [diff] [blame] | 26 | style="@style/FolderListItemEndStyle"> |
Mindy Pereira | f645288 | 2012-02-14 18:13:13 -0800 | [diff] [blame] | 27 | |
Rohan Shah | 6ba9620 | 2014-09-02 14:40:21 -0700 | [diff] [blame] | 28 | <View |
| 29 | android:id="@+id/nested_folder_space" |
Mindy Pereira | 465d03d | 2012-02-16 15:17:46 -0800 | [diff] [blame] | 30 | android:visibility="gone" |
Rohan Shah | 6ba9620 | 2014-09-02 14:40:21 -0700 | [diff] [blame] | 31 | android:layout_width="@dimen/nested_folder_space" |
| 32 | android:layout_height="wrap_content" /> |
Rohan Shah | 6273066 | 2013-04-30 11:44:35 -0700 | [diff] [blame] | 33 | |
Rohan Shah | 074a5a1 | 2013-04-04 17:43:15 -0700 | [diff] [blame] | 34 | <ImageView |
| 35 | android:id="@+id/folder_icon" |
| 36 | android:layout_width="wrap_content" |
| 37 | android:layout_height="wrap_content" |
Andrew Sapperstein | eba839f | 2013-12-02 15:47:35 -0800 | [diff] [blame] | 38 | style="@style/FolderListIconStyle" /> |
Mindy Pereira | f645288 | 2012-02-14 18:13:13 -0800 | [diff] [blame] | 39 | |
Rohan Shah | 2ad8962 | 2013-04-29 18:22:29 -0700 | [diff] [blame] | 40 | <TextView |
| 41 | android:id="@+id/name" |
Mindy Pereira | f645288 | 2012-02-14 18:13:13 -0800 | [diff] [blame] | 42 | android:layout_height="wrap_content" |
Rohan Shah | 6ba9620 | 2014-09-02 14:40:21 -0700 | [diff] [blame] | 43 | android:layout_width="0dp" |
| 44 | android:layout_weight="1" |
Rohan Shah | 2ad8962 | 2013-04-29 18:22:29 -0700 | [diff] [blame] | 45 | android:maxLines="2" |
| 46 | android:ellipsize="end" |
Andrew Sapperstein | f479bd6 | 2014-03-04 14:33:23 -0800 | [diff] [blame] | 47 | android:textAlignment="viewStart" |
Tony Mantler | 69086fd | 2014-07-02 13:49:53 -0700 | [diff] [blame] | 48 | android:textColor="@color/folder_item_text_color" |
| 49 | android:textSize="@dimen/drawer_item_font_size" |
Andrew Sapperstein | ca4f947 | 2013-09-18 17:40:56 -0700 | [diff] [blame] | 50 | style="@style/FolderListItemStyle" /> |
Mindy Pereira | f645288 | 2012-02-14 18:13:13 -0800 | [diff] [blame] | 51 | |
Rohan Shah | 6ba9620 | 2014-09-02 14:40:21 -0700 | [diff] [blame] | 52 | <TextView |
| 53 | android:id="@+id/unread" |
| 54 | style="@style/UnreadCount" /> |
| 55 | |
| 56 | <TextView |
| 57 | android:id="@+id/unseen" |
| 58 | style="@style/UnseenCount" /> |
| 59 | |
Rohan Shah | 671133b | 2013-03-26 14:48:10 -0700 | [diff] [blame] | 60 | </com.android.mail.ui.FolderItemView> |