Chromium Code Reviews| Index: chrome/android/java/res/layout/account_signin_account_view.xml |
| diff --git a/chrome/android/java/res/layout/account_signin_account_view.xml b/chrome/android/java/res/layout/account_signin_account_view.xml |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3f342232dddda3dcc9961e0299459ac93e598e20 |
| --- /dev/null |
| +++ b/chrome/android/java/res/layout/account_signin_account_view.xml |
| @@ -0,0 +1,46 @@ |
| +<?xml version="1.0" encoding="utf-8"?> |
| +<!-- Copyright 2016 The Chromium Authors. All rights reserved. |
| + |
| + Use of this source code is governed by a BSD-style license that can be |
| + found in the LICENSE file. |
| +--> |
| +<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.
|
| + xmlns:android="http://schemas.android.com/apk/res/android" |
| + android:layout_width="match_parent" |
| + android:layout_height="wrap_content" |
| + 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.
|
| + android:orientation="horizontal"> |
| + |
| + <ImageView |
| + android:id="@+id/account_image" |
| + android:layout_width="40dp" |
| + android:layout_height="56dp" |
| + android:layout_marginEnd="16dp" |
| + 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.
|
| + android:paddingBottom="8dp" |
| + android:contentDescription="@null"/> |
| + |
| + <TextView |
| + android:id="@+id/account_name" |
| + android:layout_width="wrap_content" |
| + android:layout_height="56dp" |
| + 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.
|
| + android:textColor="@color/default_text_color" |
| + android:textSize="@dimen/fre_normal_text_size"/> |
| + |
| + <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.
|
| + android:layout_width="0dp" |
| + android:layout_height="0dp" |
| + android:layout_weight="1" |
| + android:visibility="invisible"/> |
| + |
| + <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.
|
| + android:id="@+id/account_selection_mark" |
| + android:layout_width="24dp" |
| + android:layout_height="56dp" |
| + android:paddingTop="16dp" |
|
newt (away)
2016/04/01 23:43:10
similarly, use marginTop/Bottom here
gogerald1
2016/04/12 01:21:11
Done.
|
| + android:paddingBottom="16dp" |
| + android:src="@drawable/bookmark_check_blue" |
| + android:visibility="gone" |
| + android:contentDescription="@null"/> |
| +</LinearLayout> |