OLD | NEW |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. | 2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. |
3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
4 found in the LICENSE file. --> | 4 found in the LICENSE file. --> |
5 | 5 |
6 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> | 6 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> |
7 | 7 |
8 <org.chromium.chrome.browser.preferences.ChromeSwitchPreference | 8 <org.chromium.chrome.browser.preferences.ChromeSwitchPreference |
9 android:key="sync_switch" | 9 android:key="sync_switch" |
10 android:summaryOn="@string/text_on" | 10 android:title="@string/sign_in_sync" |
11 android:summaryOff="@string/text_off" /> | 11 android:summary="@string/sync_description" /> |
12 | |
13 <org.chromium.chrome.browser.preferences.SyncAccountListPreference | |
14 android:key="sync_account_list" | |
15 android:title="@string/sync_to_account_header" | |
newt (away)
2016/02/12 22:03:50
I'd suggest setting the title and summary in Java,
May
2016/02/16 17:32:06
Done.
| |
16 android:summary="%s" /> | |
12 | 17 |
13 <PreferenceCategory | 18 <PreferenceCategory |
14 android:key="sync_data_types" | 19 android:key="sync_data_types" |
15 android:title="@string/sync_data_types"> | 20 android:title="@string/sync_data_types"> |
16 <org.chromium.chrome.browser.preferences.ChromeSwitchPreference | 21 <org.chromium.chrome.browser.preferences.ChromeSwitchPreference |
17 android:persistent="false" | 22 android:persistent="false" |
18 android:key="sync_everything" | 23 android:key="sync_everything" |
19 android:title="@string/sync_everything_pref"/> | 24 android:title="@string/sync_everything_pref"/> |
20 <org.chromium.chrome.browser.preferences.ChromeBaseCheckBoxPreference | 25 <org.chromium.chrome.browser.preferences.ChromeBaseCheckBoxPreference |
21 android:persistent="false" | 26 android:persistent="false" |
(...skipping 26 matching lines...) Expand all Loading... | |
48 </PreferenceCategory> | 53 </PreferenceCategory> |
49 <Preference | 54 <Preference |
50 android:key="encryption" | 55 android:key="encryption" |
51 android:title="@string/sync_encryption"> | 56 android:title="@string/sync_encryption"> |
52 </Preference> | 57 </Preference> |
53 <Preference | 58 <Preference |
54 android:key="sync_manage_data" | 59 android:key="sync_manage_data" |
55 android:title="@string/sync_manage_data"> | 60 android:title="@string/sync_manage_data"> |
56 </Preference> | 61 </Preference> |
57 </PreferenceScreen> | 62 </PreferenceScreen> |
OLD | NEW |