Rohan Shah | b958701 | 2013-03-20 14:34:38 -0700 | [diff] [blame] | 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" |
Tony Mantler | fe6c6a7 | 2014-08-19 16:16:25 -0700 | [diff] [blame] | 23 | android:padding="16dp" |
Rohan Shah | 671133b | 2013-03-26 14:48:10 -0700 | [diff] [blame] | 24 | android:minHeight="@dimen/account_item_minimum_height" |
James Lemieux | 10fcd64 | 2014-03-03 13:01:04 -0800 | [diff] [blame] | 25 | android:background="@drawable/nonfolder_item"> |
Rohan Shah | b958701 | 2013-03-20 14:34:38 -0700 | [diff] [blame] | 26 | |
| 27 | <ImageView |
Martin Hibdon | c7849b2 | 2014-03-14 15:31:16 -0700 | [diff] [blame] | 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" |
Martin Hibdon | c7849b2 | 2014-03-14 15:31:16 -0700 | [diff] [blame] | 37 | android:layout_gravity="center_vertical" |
Tony Mantler | a810584 | 2014-08-15 11:46:25 -0700 | [diff] [blame] | 38 | android:orientation="vertical" |
| 39 | style="@style/AccountItemNameStyle" > |
Martin Hibdon | c7849b2 | 2014-03-14 15:31:16 -0700 | [diff] [blame] | 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> |
Rohan Shah | b958701 | 2013-03-20 14:34:38 -0700 | [diff] [blame] | 61 | |
Rohan Shah | b905f0e | 2013-04-26 09:17:37 -0700 | [diff] [blame] | 62 | <ImageView |
Martin Hibdon | c7849b2 | 2014-03-14 15:31:16 -0700 | [diff] [blame] | 63 | android:id="@+id/checkmark" |
Tony Mantler | fe6c6a7 | 2014-08-19 16:16:25 -0700 | [diff] [blame] | 64 | android:layout_width="24dp" |
| 65 | android:layout_height="24dp" |
| 66 | android:src="@drawable/ic_drawer_accnt_check_24dp" |
Martin Hibdon | c7849b2 | 2014-03-14 15:31:16 -0700 | [diff] [blame] | 67 | android:layout_gravity="center_vertical" /> |
Rohan Shah | b958701 | 2013-03-20 14:34:38 -0700 | [diff] [blame] | 68 | |
Rohan Shah | b958701 | 2013-03-20 14:34:38 -0700 | [diff] [blame] | 69 | </com.android.mail.ui.AccountItemView> |