blob: 4bddb2db47f0bcd4e007e2f09e345ba987e0cd6b [file] [log] [blame]
Rohan Shahb9587012013-03-20 14:34:38 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2013 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.AccountItemView
20 xmlns:android="http://schemas.android.com/apk/res/android"
21 android:layout_height="wrap_content"
22 android:layout_width="match_parent"
Tony Mantlerfe6c6a72014-08-19 16:16:25 -070023 android:padding="16dp"
Rohan Shah671133b2013-03-26 14:48:10 -070024 android:minHeight="@dimen/account_item_minimum_height"
James Lemieux10fcd642014-03-03 13:01:04 -080025 android:background="@drawable/nonfolder_item">
Rohan Shahb9587012013-03-20 14:34:38 -070026
27 <ImageView
Martin Hibdonc7849b22014-03-14 15:31:16 -070028 android:id="@+id/avatar"
29 android:layout_width="@dimen/account_avatar_dimension"
30 android:layout_height="@dimen/account_avatar_dimension"
31 android:layout_gravity="center_vertical" />
32
33 <LinearLayout
34 android:layout_width="0dp"
35 android:layout_height="wrap_content"
36 android:layout_weight="1"
Martin Hibdonc7849b22014-03-14 15:31:16 -070037 android:layout_gravity="center_vertical"
Tony Mantlera8105842014-08-15 11:46:25 -070038 android:orientation="vertical"
39 style="@style/AccountItemNameStyle" >
Martin Hibdonc7849b22014-03-14 15:31:16 -070040
41 <TextView
42 android:id="@+id/account_display_name"
43 android:layout_width="match_parent"
44 android:layout_height="wrap_content"
45 android:textStyle="bold"
46 android:singleLine="true"
47 android:ellipsize="end"
48 android:textAlignment="viewStart"
49 android:textAppearance="?android:attr/textAppearanceMedium"/>
50
51 <TextView
52 android:id="@+id/account_address"
53 android:layout_width="match_parent"
54 android:layout_height="wrap_content"
55 android:singleLine="true"
56 android:ellipsize="end"
57 android:textAlignment="viewStart"
58 android:textAppearance="?android:attr/textAppearanceSmall"/>
59
60 </LinearLayout>
Rohan Shahb9587012013-03-20 14:34:38 -070061
Rohan Shahb905f0e2013-04-26 09:17:37 -070062 <ImageView
Martin Hibdonc7849b22014-03-14 15:31:16 -070063 android:id="@+id/checkmark"
Tony Mantlerfe6c6a72014-08-19 16:16:25 -070064 android:layout_width="24dp"
65 android:layout_height="24dp"
66 android:src="@drawable/ic_drawer_accnt_check_24dp"
Martin Hibdonc7849b22014-03-14 15:31:16 -070067 android:layout_gravity="center_vertical" />
Rohan Shahb9587012013-03-20 14:34:38 -070068
Rohan Shahb9587012013-03-20 14:34:38 -070069</com.android.mail.ui.AccountItemView>