| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2012 Google Inc. |
| Licensed to The Android Open Source Project. |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <com.android.mail.ui.FolderItemView |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_height="wrap_content" |
| android:layout_width="match_parent" |
| android:minHeight="@dimen/folder_list_item_minimum_height" |
| android:background="@drawable/folder_item"> |
| |
| <ImageView |
| android:id="@+id/folder_parent_icon" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentBottom="true" |
| android:visibility="gone" |
| android:src="@drawable/folder_parent_icon" |
| style="@style/FolderParentIconStyle" /> |
| |
| <FrameLayout |
| android:id="@+id/message_counts" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_centerVertical="true" |
| android:duplicateParentState="true" |
| style="@style/FolderListItemEndStyle" > |
| |
| <TextView |
| android:id="@+id/unread" |
| android:duplicateParentState="true" |
| style="@style/UnreadCountRelativeLayout" /> |
| |
| <TextView |
| android:id="@+id/unseen" |
| style="@style/UnseenCount" /> |
| |
| </FrameLayout> |
| |
| <ImageView |
| android:id="@+id/folder_icon" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_centerVertical="true" |
| android:duplicateParentState="true" |
| style="@style/FolderListIconStyle" /> |
| |
| <TextView |
| android:id="@+id/name" |
| android:layout_height="wrap_content" |
| android:layout_width="wrap_content" |
| android:layout_centerVertical="true" |
| android:layout_toEndOf="@id/folder_icon" |
| android:layout_toRightOf="@id/folder_icon" |
| android:layout_toStartOf="@id/message_counts" |
| android:layout_toLeftOf="@id/message_counts" |
| android:layout_alignWithParentIfMissing="true" |
| android:duplicateParentState="true" |
| android:includeFontPadding="false" |
| android:maxLines="2" |
| android:ellipsize="end" |
| android:textAlignment="viewStart" |
| android:textColor="@color/folder_item_text_color" |
| android:textSize="@dimen/drawer_item_font_size" |
| style="@style/FolderListItemStyle" /> |
| |
| </com.android.mail.ui.FolderItemView> |