OLD | NEW |
---|---|
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 <org.chromium.chrome.browser.dom_distiller.DistilledPagePrefsView | 8 <org.chromium.chrome.browser.dom_distiller.DistilledPagePrefsView |
9 xmlns:android="http://schemas.android.com/apk/res/android" | 9 xmlns:android="http://schemas.android.com/apk/res/android" |
10 android:layout_width="match_parent" | 10 android:layout_width="match_parent" |
11 android:layout_height="wrap_content" | 11 android:layout_height="wrap_content" |
12 android:orientation="horizontal" | 12 android:orientation="vertical" |
13 android:background="@drawable/distilled_page_pref_background" | 13 android:background="@drawable/distilled_page_pref_background" |
14 android:splitMotionEvents="false" | |
newt (away)
2014/08/11 17:15:30
Just curious: why does this need to be false?
smaslo
2014/08/12 02:25:43
Done.
On 2014/08/11 17:15:30, newt wrote:
| |
14 android:padding="10dp" > | 15 android:padding="10dp" > |
15 | 16 |
16 <RadioButton | 17 <RadioGroup |
17 android:id="@+id/light_mode" | 18 android:layout_width="match_parent" |
18 android:text="@string/light_mode" | 19 android:id="@+id/radio_button_group" |
newt (away)
2014/08/11 17:15:30
put id before layout_width
smaslo
2014/08/12 02:25:44
Done.
| |
19 style="@style/DistilledPagePrefThemeButton" /> | 20 android:layout_height="wrap_content" |
21 android:orientation="horizontal" > | |
20 | 22 |
21 <RadioButton | 23 <RadioButton |
22 android:id="@+id/dark_mode" | 24 android:id="@+id/light_mode" |
23 android:text="@string/dark_mode" | 25 android:text="@string/light_mode" |
24 style="@style/DistilledPagePrefThemeButton" /> | 26 style="@style/DistilledPagePrefThemeButton" /> |
25 | 27 |
26 <RadioButton | 28 <RadioButton |
27 android:id="@+id/sepia_mode" | 29 android:id="@+id/dark_mode" |
28 android:text="@string/sepia_mode" | 30 android:text="@string/dark_mode" |
29 style="@style/DistilledPagePrefThemeButton" /> | 31 style="@style/DistilledPagePrefThemeButton" /> |
32 <RadioButton | |
33 android:id="@+id/sepia_mode" | |
34 android:text="@string/sepia_mode" | |
35 style="@style/DistilledPagePrefThemeButton" /> | |
36 | |
37 </RadioGroup> | |
38 <LinearLayout | |
39 android:layout_width="match_parent" | |
40 android:layout_height="wrap_content" | |
41 android:orientation="horizontal" | |
42 android:layout_marginTop="3dp"> | |
43 | |
44 <TextView | |
45 android:id="@+id/font_size_percentage" | |
newt (away)
2014/08/11 17:15:30
Setting "sp" units in the width is a bit unusual.
smaslo
2014/08/12 02:25:43
Done.
| |
46 android:layout_width="60sp" | |
47 android:layout_height="match_parent" | |
48 android:orientation="horizontal" | |
newt (away)
2014/08/11 17:15:30
"orientation" doesn't apply to TextView, or any of
smaslo
2014/08/12 02:25:43
Done.
| |
49 android:gravity="center" | |
50 android:textSize="17sp" /> | |
51 | |
52 <TextView | |
53 android:layout_width="wrap_content" | |
54 android:layout_height="match_parent" | |
55 android:orientation="horizontal" | |
56 android:gravity="center" | |
newt (away)
2014/08/11 17:15:30
Use center_vertical to be more explicit with your
smaslo
2014/08/12 02:25:43
Done.
| |
57 android:layout_marginStart="5dp" | |
58 android:textSize="13sp" | |
59 android:text="A" /> | |
newt (away)
2014/08/11 17:15:30
I suspect that different letters would be appropri
smaslo
2014/08/12 02:25:43
Done.
| |
60 | |
61 <SeekBar | |
62 android:id="@+id/font_size" | |
63 android:layout_width="0dp" | |
64 android:layout_height="wrap_content" | |
65 android:layout_weight="4" | |
newt (away)
2014/08/11 17:15:30
Just use layout_weight="1". It's equivalent and do
smaslo
2014/08/12 02:25:43
Done.
| |
66 android:orientation="horizontal" | |
67 android:max="30" /> | |
68 | |
69 <TextView | |
70 android:layout_width="wrap_content" | |
71 android:layout_height="match_parent" | |
72 android:orientation="horizontal" | |
73 android:gravity="center" | |
74 android:layout_marginEnd="3dp" | |
75 android:textSize="20sp" | |
76 android:text="A" /> | |
77 | |
78 </LinearLayout> | |
79 | |
30 </org.chromium.chrome.browser.dom_distiller.DistilledPagePrefsView> | 80 </org.chromium.chrome.browser.dom_distiller.DistilledPagePrefsView> |
OLD | NEW |