• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="fill_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="fill_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            style="@style/unreadCount"/>
71    </LinearLayout>
72    <ImageView
73        android:id="@+id/default_sender"
74        android:layout_width="12dip"
75        android:layout_height="12dip"
76        android:minWidth="12dip"
77        android:layout_margin="5dip"
78        android:src="@drawable/ind_default"/>
79    <View
80        android:id="@+id/folder_separator"
81        android:background="@color/account_folder_list_item_separator"
82        android:layout_width="1dip"
83        android:layout_height="40dip"
84        android:layout_marginLeft="5dip" />
85    <ImageView
86        android:id="@+id/folder_button"
87        android:layout_width="40dip"
88        android:layout_height="40dip"
89        android:layout_alignParentRight="true"
90        android:minWidth="30dip"
91        android:paddingTop="5dip"
92        android:paddingLeft="5dip"
93        android:src="@drawable/btn_folder"/>
94</com.android.email.activity.AccountFolderListItem>