Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1796)

Unified Diff: ui/android/java/res/layout/dropdown_item_icon_at_left.xml

Issue 2531223003: Expanded Autofill Credit Card Popup Layout Experiment in Android. (Closed)
Patch Set: Uses format string for expiration date label. Consistently returns 0 as default (non-experiment) va… Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/android/java/res/layout/dropdown_item_icon_at_left.xml
diff --git a/ui/android/java/res/layout/dropdown_item_icon_at_left.xml b/ui/android/java/res/layout/dropdown_item_icon_at_left.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e76a9d506a38c3a8c82f34f7b189cb09e792b9d9
--- /dev/null
+++ b/ui/android/java/res/layout/dropdown_item_icon_at_left.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
Mathieu 2016/12/01 21:59:47 Can you look at the discussion here [1] and see wh
csashi 2016/12/02 05:15:29 Yes, it applies. I have modified my CL to be simil
+<!-- Copyright 2014 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 xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:orientation="horizontal" >
+
+ <ImageView
+ android:id="@+id/dropdown_icon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="8dp"
+ android:contentDescription="@null" />
+
+ <!-- These layout params are overwritten in DropdownAdapter.java -->
+
+ <LinearLayout
+ android:id="@+id/dropdown_label_wrapper"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:gravity="center_vertical"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/dropdown_label"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="10dp"
+ android:layout_marginStart="10dp"
+ android:ellipsize="end"
+ android:includeFontPadding="false"
+ android:singleLine="true"
+ android:textAlignment="viewStart"
+ android:textColor="@drawable/dropdown_label_color"
+ android:textSize="@dimen/dropdown_item_label_font_size" />
+
+ <TextView
+ android:id="@+id/dropdown_sublabel"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="10dp"
+ android:layout_marginStart="10dp"
+ android:ellipsize="end"
+ android:includeFontPadding="false"
+ android:singleLine="true"
+ android:textAlignment="viewStart"
+ android:textColor="#646464"
+ android:textSize="14sp" />
+ </LinearLayout>
+
+</LinearLayout>

Powered by Google App Engine
This is Rietveld 408576698