Home | History | Annotate | Download | only in layout
      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 
     26     <ImageView
     27         android:id="@+id/folder_parent_icon"
     28         android:layout_width="wrap_content"
     29         android:layout_height="wrap_content"
     30         android:layout_alignParentBottom="true"
     31         android:layout_alignParentEnd="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_alignParentStart="true"
     40         android:layout_alignParentLeft="true"
     41         android:layout_alignParentTop="true" />
     42 
     43     <FrameLayout
     44         android:id="@+id/message_counts"
     45         android:layout_width="wrap_content"
     46         android:layout_height="wrap_content"
     47         android:layout_centerVertical="true"
     48         android:layout_alignParentEnd="true"
     49         android:layout_alignParentRight="true"
     50         android:duplicateParentState="true"
     51         style="@style/FolderListItemEndStyle" >
     52 
     53         <TextView
     54             android:id="@+id/unread"
     55             android:duplicateParentState="true"
     56             style="@style/UnreadCount" />
     57 
     58         <TextView
     59             android:id="@+id/unseen"
     60             style="@style/UnseenCount" />
     61 
     62     </FrameLayout>
     63 
     64     <ImageView
     65         android:id="@+id/folder_icon"
     66         android:layout_width="wrap_content"
     67         android:layout_height="wrap_content"
     68         android:layout_centerVertical="true"
     69         android:layout_alignParentStart="true"
     70         android:layout_alignParentLeft="true"
     71         android:duplicateParentState="true"
     72         android:visibility="gone"
     73         style="@style/FolderListItemStartStyle" />
     74 
     75     <TextView
     76         android:id="@+id/name"
     77         android:layout_height="wrap_content"
     78         android:layout_width="wrap_content"
     79         android:layout_centerVertical="true"
     80         android:layout_toEndOf="@id/folder_icon"
     81         android:layout_toRightOf="@id/folder_icon"
     82         android:layout_toStartOf="@id/message_counts"
     83         android:layout_toLeftOf="@id/message_counts"
     84         android:layout_alignWithParentIfMissing="true"
     85         android:duplicateParentState="true"
     86         android:includeFontPadding="false"
     87         android:maxLines="2"
     88         android:ellipsize="end"
     89         android:textColor="@color/folder_item_text_color"
     90         android:textAppearance="?android:attr/textAppearanceMedium"
     91         style="@style/FolderListItemStyle" />
     92 
     93 </com.android.mail.ui.FolderItemView>
     94