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

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

Issue 2510283002: Http Bad: Put icon on the left of warning message and make value and label in one line on Android (Closed)
Patch Set: format 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 unified diff | Download patch
OLDNEW
(Empty)
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2016 The Chromium Authors. All rights reserved.
3
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
6 -->
7
8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
9 android:layout_width="match_parent"
10 android:layout_height="wrap_content"
11 android:gravity="center_vertical"
12 android:orientation="horizontal" >
13
14 <!-- These layout params are overwritten in DropdownAdapter.java -->
15
16 <ImageView
Ted C 2016/11/28 18:29:11 instead of creating a different xml file, just add
lshang 2016/11/30 10:35:43 That's a good idea! Done!
17 android:id="@+id/dropdown_icon"
18 android:layout_width="wrap_content"
19 android:layout_height="wrap_content"
20 android:layout_margin="8dp"
21 android:contentDescription="@null" />
22
23 <LinearLayout
24 android:id="@+id/dropdown_label_wrapper"
25 android:layout_width="0dp"
26 android:layout_height="0dp"
27 android:layout_weight="1"
28 android:gravity="center_vertical"
29 android:orientation="vertical" >
30
31 <TextView
32 android:id="@+id/dropdown_label"
33 android:layout_width="wrap_content"
34 android:layout_height="wrap_content"
35 android:layout_marginEnd="@dimen/dropdown_item_label_margin"
36 android:layout_marginStart="@dimen/dropdown_item_label_margin"
37 android:ellipsize="end"
38 android:includeFontPadding="false"
39 android:singleLine="true"
40 android:textAlignment="viewStart"
41 android:textColor="@drawable/dropdown_label_color"
42 android:textSize="@dimen/dropdown_item_label_font_size" />
43
44 <TextView
45 android:id="@+id/dropdown_sublabel"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:layout_marginEnd="@dimen/dropdown_item_sublabel_margin"
49 android:layout_marginStart="@dimen/dropdown_item_sublabel_margin"
50 android:ellipsize="end"
51 android:includeFontPadding="false"
52 android:singleLine="true"
53 android:textAlignment="viewStart"
54 android:textColor="#646464"
55 android:textSize="14sp" />
56 </LinearLayout>
57
58 </LinearLayout>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698