OLD | NEW |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 <!-- Copyright (c) 2012 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 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | 8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
9 android:layout_height="fill_parent" | 9 android:id="@+id/autofill_menu_text" |
10 android:layout_width="fill_parent" | 10 android:layout_width="fill_parent" |
11 android:background="#FFF" | 11 android:layout_height="48dp" |
12 android:orientation="horizontal"> | 12 android:minHeight="48dp" |
13 android:orientation="vertical" | |
14 android:gravity="center_vertical"> | |
13 <TextView android:id="@+id/autofill_label" | 15 <TextView android:id="@+id/autofill_label" |
14 android:layout_alignParentEnd="true" | |
15 android:layout_width="wrap_content" | 16 android:layout_width="wrap_content" |
16 android:layout_height="fill_parent" | 17 android:layout_height="wrap_content" |
17 android:padding="5dp" | 18 android:ellipsize="end" |
19 android:singleLine="true" | |
18 android:textSize="18sp" | 20 android:textSize="18sp" |
19 android:textColor="#CCC" | 21 android:layout_marginStart="10dp" |
22 android:layout_marginEnd="10dp"/> | |
23 <TextView android:id="@+id/autofill_sublabel" | |
24 android:layout_width="wrap_content" | |
25 android:layout_height="wrap_content" | |
26 android:textSize="14sp" | |
27 android:textColor="#8b8b8b" | |
20 android:ellipsize="end" | 28 android:ellipsize="end" |
21 android:singleLine="true"/> | 29 android:singleLine="true" |
22 <TextView android:id="@+id/autofill_name" | 30 android:includeFontPadding="false" |
Ted C
2013/06/14 20:57:53
Why add this out of curiosity?
aurimas (slooooooooow)
2013/06/14 21:09:09
This seems to reduce the padding between label and
| |
23 android:layout_alignParentStart="true" | 31 android:layout_marginStart="10dp" |
24 android:layout_width="wrap_content" | 32 android:layout_marginEnd="10dp"/> |
25 android:layout_height="fill_parent" | 33 </LinearLayout> |
26 android:padding="5dp" | |
27 android:background="#FFF" | |
28 android:textSize="18sp" | |
29 android:textColor="#000" | |
30 android:ellipsize="end" | |
31 android:singleLine="true"/> | |
32 </RelativeLayout> | |
OLD | NEW |