OLD | NEW |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- Copyright 2013 The Chromium Authors. All rights reserved. | 2 <!-- Copyright 2013 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/autofill_menu_text" | 9 android:id="@+id/autofill_menu_text" |
10 android:layout_width="fill_parent" | 10 android:layout_width="fill_parent" |
newt (away)
2013/09/10 17:45:10
"fill_parent" -> "match_parent" everywhere
| |
11 android:layout_height="44dp" | 11 android:layout_height="wrap_content" |
12 android:minHeight="44dp" | 12 android:background="@drawable/autofill_divider" |
13 android:orientation="vertical" | 13 android:orientation="vertical"> |
14 android:gravity="center_vertical"> | 14 <LinearLayout android:id="@+id/autofill_menu_text" |
newt (away)
2013/09/09 20:20:42
these two linearlayouts can be combined into one
keishi
2013/09/10 09:19:56
I thought that maybe by using two LinearLayouts I
newt (away)
2013/09/10 17:45:10
If you need to calculate this value (44dp+1px), yo
keishi
2013/09/19 11:53:05
I implemented 44dp + 1px.
| |
15 <TextView android:id="@+id/autofill_label" | 15 android:layout_width="fill_parent" |
16 android:layout_width="wrap_content" | 16 android:layout_height="44dp" |
17 android:layout_height="wrap_content" | 17 android:minHeight="44dp" |
18 android:ellipsize="end" | 18 android:orientation="vertical" |
19 android:singleLine="true" | 19 android:gravity="center_vertical"> |
20 android:textSize="18sp" | 20 <TextView android:id="@+id/autofill_label" |
21 android:includeFontPadding="false" | 21 android:layout_width="wrap_content" |
22 android:layout_marginStart="10dp" | 22 android:layout_height="wrap_content" |
23 android:layout_marginEnd="10dp"/> | 23 android:ellipsize="end" |
24 <TextView android:id="@+id/autofill_sublabel" | 24 android:singleLine="true" |
25 android:layout_width="wrap_content" | 25 android:textSize="18sp" |
26 android:layout_height="wrap_content" | 26 android:includeFontPadding="false" |
27 android:textSize="14sp" | 27 android:layout_marginStart="10dp" |
28 android:textColor="#8b8b8b" | 28 android:layout_marginEnd="10dp"/> |
29 android:ellipsize="end" | 29 <TextView android:id="@+id/autofill_sublabel" |
30 android:singleLine="true" | 30 android:layout_width="wrap_content" |
31 android:includeFontPadding="false" | 31 android:layout_height="wrap_content" |
32 android:layout_marginStart="10dp" | 32 android:textSize="14sp" |
33 android:layout_marginEnd="10dp"/> | 33 android:textColor="#8b8b8b" |
34 android:ellipsize="end" | |
35 android:singleLine="true" | |
36 android:includeFontPadding="false" | |
37 android:layout_marginStart="10dp" | |
38 android:layout_marginEnd="10dp"/> | |
39 </LinearLayout> | |
34 </LinearLayout> | 40 </LinearLayout> |
OLD | NEW |