OLD | NEW |
---|---|
(Empty) | |
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <!-- Copyright 2016 The Chromium Authors. All rights reserved. | |
3 | |
4 Use of this source code is governed by a BSD-style license that can be | |
5 found in the LICENSE file. | |
6 --> | |
7 <LinearLayout | |
newt (away)
2016/04/01 23:43:10
nit: use 4-space indentation, instead of 8-space i
gogerald1
2016/04/12 01:21:11
Done.
| |
8 xmlns:android="http://schemas.android.com/apk/res/android" | |
9 android:layout_width="match_parent" | |
10 android:layout_height="wrap_content" | |
11 android:layout_gravity="start" | |
newt (away)
2016/04/01 23:43:10
layout_gravity determines how this view is positio
gogerald1
2016/04/12 01:21:11
Done.
| |
12 android:orientation="horizontal"> | |
13 | |
14 <ImageView | |
15 android:id="@+id/account_image" | |
16 android:layout_width="40dp" | |
17 android:layout_height="56dp" | |
18 android:layout_marginEnd="16dp" | |
19 android:paddingTop="8dp" | |
newt (away)
2016/04/01 23:43:10
suggestion: use marginTop/Bottom instead of paddin
gogerald1
2016/04/12 01:21:10
Done.
| |
20 android:paddingBottom="8dp" | |
21 android:contentDescription="@null"/> | |
22 | |
23 <TextView | |
24 android:id="@+id/account_name" | |
25 android:layout_width="wrap_content" | |
26 android:layout_height="56dp" | |
27 android:gravity="center" | |
newt (away)
2016/04/01 23:43:10
for clarity, I'd use "center_vertical" instead of
gogerald1
2016/04/12 01:21:11
Done.
| |
28 android:textColor="@color/default_text_color" | |
29 android:textSize="@dimen/fre_normal_text_size"/> | |
30 | |
31 <View | |
newt (away)
2016/04/01 23:43:10
This view isn't needed. Instead, just set layout_w
gogerald1
2016/04/12 01:21:11
Done.
| |
32 android:layout_width="0dp" | |
33 android:layout_height="0dp" | |
34 android:layout_weight="1" | |
35 android:visibility="invisible"/> | |
36 | |
37 <ImageView | |
newt (away)
2016/04/01 23:43:10
You probably want paddingStart="16dp" in case the
gogerald1
2016/04/12 01:21:10
Done.
| |
38 android:id="@+id/account_selection_mark" | |
39 android:layout_width="24dp" | |
40 android:layout_height="56dp" | |
41 android:paddingTop="16dp" | |
newt (away)
2016/04/01 23:43:10
similarly, use marginTop/Bottom here
gogerald1
2016/04/12 01:21:11
Done.
| |
42 android:paddingBottom="16dp" | |
43 android:src="@drawable/bookmark_check_blue" | |
44 android:visibility="gone" | |
45 android:contentDescription="@null"/> | |
46 </LinearLayout> | |
OLD | NEW |