• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?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"
23    android:padding="16dp"
24    android:minHeight="@dimen/account_item_minimum_height"
25    android:background="@drawable/nonfolder_item">
26
27    <ImageView
28        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"
37        android:layout_gravity="center_vertical"
38        android:orientation="vertical"
39        style="@style/AccountItemNameStyle" >
40
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>
61
62    <ImageView
63        android:id="@+id/checkmark"
64        android:layout_width="24dp"
65        android:layout_height="24dp"
66        android:src="@drawable/ic_drawer_accnt_check_24dp"
67        android:layout_gravity="center_vertical" />
68
69</com.android.mail.ui.AccountItemView>
70