Chromium Code Reviews| Index: chrome/android/java/res/layout/account_chooser_infobar_item.xml |
| diff --git a/chrome/android/java/res/layout/account_chooser_infobar_item.xml b/chrome/android/java/res/layout/account_chooser_infobar_item.xml |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f30b74188d0fb12f158d7a7e09f82a4bcf041847 |
| --- /dev/null |
| +++ b/chrome/android/java/res/layout/account_chooser_infobar_item.xml |
| @@ -0,0 +1,42 @@ |
| +<?xml version="1.0" encoding="utf-8"?> |
| +<!-- Copyright 2015 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. --> |
| + |
| +<!-- TODO(melandory): remove selectable background once ListView used to represent credentials--> |
| +<LinearLayout |
| + xmlns:android="http://schemas.android.com/apk/res/android" |
| + android:layout_width="match_parent" |
| + android:layout_height="wrap_content" |
| + android:padding="8dp" |
| + android:background="?attr/selectableItemBackground" |
| + android:orientation="horizontal" > |
| + <ImageView |
| + android:id="@+id/profile_image" |
| + android:layout_gravity="center_vertical" |
| + android:layout_width="32dp" |
| + android:layout_height="32dp" |
| + android:contentDescription="@null"/> |
| + <LinearLayout |
| + android:layout_width="0dp" |
| + android:layout_height="wrap_content" |
| + android:layout_weight="1" |
| + android:layout_gravity="center_vertical" |
| + android:layout_margin="8dp" |
| + android:orientation="vertical"> |
| + <TextView |
| + android:id="@+id/username" |
| + android:layout_width="wrap_content" |
| + android:layout_height="wrap_content" |
| + android:ellipsize="end" |
| + android:singleLine="true" |
| + android:textAppearance="?android:attr/textAppearanceMedium"/> |
|
newt (away)
2015/02/17 21:49:07
textAppearanceMedium and textAppearanceSmall are q
melandory
2015/02/18 21:15:34
I've chosen same font settings as native Android i
|
| + <TextView |
| + android:id="@+id/display_name" |
| + android:textAppearance="?android:attr/textAppearanceSmall" |
| + android:singleLine="true" |
| + android:ellipsize="end" |
| + android:layout_width="wrap_content" |
|
newt (away)
2015/02/17 21:49:07
Attributes should be in this order:
- id
- layou
melandory
2015/02/18 21:15:34
Done.
|
| + android:layout_height="wrap_content"/> |
| + </LinearLayout> |
| +</LinearLayout> |