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

Side by Side Diff: ui/android/java/res/layout/dropdown_item.xml

Issue 443193006: Show icons in Android web autofill dropdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2014 The Chromium Authors. All rights reserved.
3 3
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
9 android:id="@+id/dropdown_menu_text" 9 android:orientation="horizontal"
10 android:orientation="vertical" 10 android:layout_width="match_parent"
11 android:layout_height="wrap_content"
11 android:gravity="center_vertical"> 12 android:gravity="center_vertical">
12 13
13 <TextView android:id="@+id/dropdown_label" 14 <LinearLayout
14 android:layout_width="wrap_content" 15 android:layout_width="wrap_content"
15 android:layout_height="wrap_content" 16 android:layout_height="wrap_content"
16 android:layout_marginStart="10dp" 17 android:orientation="vertical">
17 android:layout_marginEnd="10dp" 18
18 android:ellipsize="end" 19 <TextView android:id="@+id/dropdown_label"
19 android:singleLine="true" 20 android:layout_width="wrap_content"
20 android:textAlignment="viewStart" 21 android:layout_height="wrap_content"
21 android:textSize="18sp" 22 android:layout_marginStart="10dp"
22 android:includeFontPadding="false"/> 23 android:layout_marginEnd="10dp"
23 <TextView android:id="@+id/dropdown_sublabel" 24 android:ellipsize="end"
25 android:singleLine="true"
26 android:textAlignment="viewStart"
27 android:textSize="18sp"
28 android:includeFontPadding="false"/>
29 <TextView android:id="@+id/dropdown_sublabel"
30 android:layout_width="wrap_content"
31 android:layout_height="wrap_content"
32 android:layout_marginStart="10dp"
33 android:layout_marginEnd="10dp"
34 android:textSize="14sp"
35 android:textColor="#8b8b8b"
36 android:ellipsize="end"
37 android:singleLine="true"
38 android:textAlignment="viewStart"
39 android:includeFontPadding="false"/>
40 </LinearLayout>
41
42 <!-- Spacer to move the icon to the right. -->
aurimas (slooooooooow) 2014/11/04 21:17:39 Why don't we simply make the linear layout that co
Evan Stade 2014/11/04 22:09:41 good idea, done.
43 <View
44 android:layout_width="0dp"
45 android:layout_height="0dp"
46 android:layout_weight="1"/>
47
48 <ImageView android:id="@+id/dropdown_icon"
24 android:layout_width="wrap_content" 49 android:layout_width="wrap_content"
25 android:layout_height="wrap_content" 50 android:layout_height="wrap_content"
26 android:layout_marginStart="10dp" 51 android:layout_margin="8dp"/>
27 android:layout_marginEnd="10dp" 52
28 android:textSize="14sp"
29 android:textColor="#8b8b8b"
30 android:ellipsize="end"
31 android:singleLine="true"
32 android:textAlignment="viewStart"
33 android:includeFontPadding="false"/>
34 </LinearLayout> 53 </LinearLayout>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698