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

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

Issue 2665433002: [Merge M57] Use uniform margin for icon, label and sublabel (Closed)
Patch Set: Created 3 years, 10 months 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:layout_width="match_parent" 9 android:layout_width="match_parent"
10 android:layout_height="wrap_content" 10 android:layout_height="wrap_content"
(...skipping 26 matching lines...) Expand all
37 android:includeFontPadding="false" 37 android:includeFontPadding="false"
38 android:singleLine="true" 38 android:singleLine="true"
39 android:textAlignment="viewStart" 39 android:textAlignment="viewStart"
40 android:textColor="@drawable/dropdown_label_color" 40 android:textColor="@drawable/dropdown_label_color"
41 android:textSize="@dimen/dropdown_item_label_font_size" /> 41 android:textSize="@dimen/dropdown_item_label_font_size" />
42 42
43 <TextView 43 <TextView
44 android:id="@+id/dropdown_sublabel" 44 android:id="@+id/dropdown_sublabel"
45 android:layout_width="wrap_content" 45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content" 46 android:layout_height="wrap_content"
47 android:layout_marginEnd="10dp" 47 android:layout_marginEnd="@dimen/dropdown_item_label_margin"
48 android:layout_marginStart="10dp" 48 android:layout_marginStart="@dimen/dropdown_item_label_margin"
49 android:ellipsize="end" 49 android:ellipsize="end"
50 android:includeFontPadding="false" 50 android:includeFontPadding="false"
51 android:singleLine="true" 51 android:singleLine="true"
52 android:textAlignment="viewStart" 52 android:textAlignment="viewStart"
53 android:textColor="#646464" 53 android:textColor="#646464"
54 android:textSize="@dimen/dropdown_item_sublabel_font_size" /> 54 android:textSize="@dimen/dropdown_item_sublabel_font_size" />
55 </LinearLayout> 55 </LinearLayout>
56 56
57 <ImageView 57 <ImageView
58 android:id="@+id/end_dropdown_icon" 58 android:id="@+id/end_dropdown_icon"
59 android:layout_width="wrap_content" 59 android:layout_width="wrap_content"
60 android:layout_height="wrap_content" 60 android:layout_height="wrap_content"
61 android:layout_margin="8dp" 61 android:layout_margin="8dp"
62 android:contentDescription="@null" /> 62 android:contentDescription="@null" />
63 63
64 </LinearLayout> 64 </LinearLayout>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698