OLD | NEW |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. | 2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. |
3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
4 found in the LICENSE file. --> | 4 found in the LICENSE file. --> |
5 | 5 |
6 <LinearLayout | 6 <RelativeLayout |
7 xmlns:android="http://schemas.android.com/apk/res/android" | 7 xmlns:android="http://schemas.android.com/apk/res/android" |
8 android:layout_width="match_parent" | 8 android:layout_width="match_parent" |
9 android:layout_height="wrap_content" | 9 android:layout_height="wrap_content" |
10 android:minHeight="64dp" | 10 android:minHeight="64dp" |
11 android:paddingStart="@dimen/account_chooser_dialog_item_margin" | 11 android:paddingStart="@dimen/account_chooser_dialog_item_margin" |
12 android:paddingEnd="@dimen/account_chooser_dialog_item_margin" | 12 android:paddingEnd="@dimen/account_chooser_dialog_item_margin" |
13 android:orientation="horizontal" > | 13 android:orientation="horizontal" > |
14 <ImageView | 14 <ImageView |
15 android:id="@+id/profile_image" | 15 android:id="@+id/profile_image" |
16 android:layout_width="40dp" | 16 android:layout_width="40dp" |
17 android:layout_height="40dp" | 17 android:layout_height="40dp" |
18 android:layout_gravity="center_vertical" | 18 android:layout_centerVertical="true" |
19 android:contentDescription="@null"/> | 19 android:contentDescription="@null"/> |
20 <LinearLayout | 20 <LinearLayout |
21 android:layout_width="wrap_content" | 21 android:layout_width="wrap_content" |
22 android:layout_height="wrap_content" | 22 android:layout_height="wrap_content" |
23 android:layout_gravity="center_vertical" | 23 android:layout_centerVertical="true" |
24 android:layout_margin="8dp" | 24 android:layout_margin="8dp" |
25 android:layout_marginStart="16dp" | 25 android:layout_marginStart="16dp" |
26 android:layout_toEndOf="@+id/profile_image" | |
27 android:layout_toStartOf="@+id/psl_info_icon" | |
26 android:orientation="vertical"> | 28 android:orientation="vertical"> |
27 <TextView | 29 <TextView |
28 android:id="@+id/main_name" | 30 android:id="@+id/main_name" |
29 android:layout_width="wrap_content" | 31 android:layout_width="wrap_content" |
30 android:layout_height="wrap_content" | 32 android:layout_height="wrap_content" |
31 android:ellipsize="end" | 33 android:ellipsize="end" |
32 android:singleLine="true" | 34 android:singleLine="true" |
33 android:fontFamily="sans-serif" | 35 android:fontFamily="sans-serif" |
34 android:textColor="@color/default_text_color" | 36 android:textColor="@color/default_text_color" |
35 android:textSize="@dimen/account_chooser_dialog_title_main_text_size "/> | 37 android:textSize="@dimen/account_chooser_dialog_title_main_text_size "/> |
36 <TextView | 38 <TextView |
37 android:id="@+id/secondary_name" | 39 android:id="@+id/secondary_name" |
38 android:layout_width="wrap_content" | 40 android:layout_width="wrap_content" |
39 android:layout_height="wrap_content" | 41 android:layout_height="wrap_content" |
40 android:ellipsize="end" | 42 android:ellipsize="end" |
41 android:singleLine="true" | 43 android:singleLine="true" |
42 android:fontFamily="sans-serif" | 44 android:fontFamily="sans-serif" |
43 android:textColor="@color/descriptive_text_color" | 45 android:textColor="@color/descriptive_text_color" |
44 android:textSize="@dimen/account_chooser_dialog_title_descriptive_te xt_size"/> | 46 android:textSize="@dimen/account_chooser_dialog_title_descriptive_te xt_size"/> |
45 </LinearLayout> | 47 </LinearLayout> |
46 </LinearLayout> | 48 <ImageView |
49 android:id="@+id/psl_info_icon" | |
50 android:layout_width="@dimen/psl_info_icon_width" | |
Bernhard Bauer
2016/12/06 16:46:42
Keep the attributes sorted?
jdoerrie
2016/12/06 17:39:52
Done.
| |
51 android:layout_height="@dimen/psl_info_icon_height" | |
52 android:padding="@dimen/psl_info_icon_padding" | |
53 android:layout_alignParentEnd="true" | |
54 android:layout_centerVertical="true" | |
55 android:contentDescription="@null"/> | |
56 </RelativeLayout> | |
OLD | NEW |