Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2009 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <com.android.email.activity.AccountFolderListItem
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="?android:attr/listPreferredItemHeight"
     21     android:orientation="horizontal"
     22     android:gravity="center_vertical"
     23     android:paddingRight="4dip">
     24     <View
     25         android:id="@+id/chip"
     26         android:background="@drawable/appointment_indicator_leftside_1"
     27         android:layout_width="4dip"
     28         android:layout_height="match_parent"
     29         android:layout_centerVertical="true" />
     30     <ImageView
     31         android:id="@+id/folder_icon"
     32         android:layout_width="30dip"
     33         android:layout_height="30dip"
     34         android:layout_alignParentRight="true"
     35         android:layout_marginLeft="4dip"
     36         android:layout_marginRight="4dip"
     37         android:minWidth="30dip"
     38         android:src="@drawable/ic_list_folder" />
     39     <LinearLayout
     40         android:layout_width="wrap_content"
     41         android:layout_height="wrap_content"
     42         android:orientation="horizontal"
     43         android:gravity="center_vertical"
     44         android:layout_weight="1">
     45         <LinearLayout
     46             android:id="@+id/subject"
     47             android:layout_width="wrap_content"
     48             android:layout_height="wrap_content"
     49             android:layout_marginLeft="8dip"
     50             android:gravity="center_vertical"
     51             android:orientation="vertical">
     52             <TextView
     53                 android:id="@+id/name"
     54                 android:textAppearance="?android:attr/textAppearanceMedium"
     55                 android:textColor="?android:attr/textColorPrimary"
     56                 android:layout_width="wrap_content"
     57                 android:layout_height="wrap_content" />
     58             <TextView
     59                 android:id="@+id/status"
     60                 android:textAppearance="?android:attr/textAppearanceSmall"
     61                 android:textColor="?android:attr/textColorTertiary"
     62                 android:layout_width="wrap_content"
     63                 android:layout_height="wrap_content" />
     64         </LinearLayout>
     65         <TextView
     66             android:id="@+id/new_message_count"
     67             android:layout_width="wrap_content"
     68             android:layout_height="wrap_content"
     69             android:layout_marginLeft="4dip"
     70             android:background="@drawable/ind_unread"
     71             style="@style/unreadCount"/>
     72         <TextView
     73             android:id="@+id/all_message_count"
     74             android:layout_width="wrap_content"
     75             android:layout_height="wrap_content"
     76             android:layout_marginLeft="4dip"
     77             android:background="@drawable/ind_sum"
     78             style="@style/unreadCount"/>
     79     </LinearLayout>
     80     <ImageView
     81         android:id="@+id/default_sender"
     82         android:layout_width="12dip"
     83         android:layout_height="12dip"
     84         android:minWidth="12dip"
     85         android:layout_margin="5dip"
     86         android:src="@drawable/ind_default"/>
     87     <View
     88         android:id="@+id/folder_separator"
     89         android:background="@color/account_folder_list_item_separator"
     90         android:layout_width="1dip"
     91         android:layout_height="40dip"
     92         android:layout_marginLeft="5dip" />
     93     <ImageView
     94         android:id="@+id/folder_button"
     95         android:layout_width="40dip"
     96         android:layout_height="40dip"
     97         android:layout_alignParentRight="true"
     98         android:minWidth="30dip"
     99         android:paddingTop="5dip"
    100         android:paddingLeft="5dip"
    101         android:src="@drawable/btn_folder"/>
    102 </com.android.email.activity.AccountFolderListItem>