1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2014 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<PreferenceScreen
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
20    android:title="@string/settings_screen_accounts">
21
22    <!-- This preference is a dummy view of the underlying preference.
23         This isn't persisted and the summary/title is refreshed by the fragment
24         after inspecting the underlying account preference. -->
25    <Preference
26        android:key="account_switcher"
27        android:persistent="false"
28        android:title="@string/switch_accounts"
29        android:summary="@string/no_accounts_selected"
30        android:enabled="false" />
31
32    <!-- Summary will be set programmatically to reflect the account status -->
33    <CheckBoxPreference
34        android:key="pref_enable_cloud_sync"
35        android:title="@string/cloud_sync_title"
36        android:defaultValue="false"
37        android:persistent="true"
38        android:disableDependentsState="false"
39        android:enabled="false" />
40
41    <!-- This preference (acts like a button) enables the user to initiate an one time sync. -->
42    <Preference android:key="pref_sync_now"
43        android:persistent="false"
44        android:title="@string/sync_now_title"
45        android:dependency="pref_enable_cloud_sync" />
46
47    <!-- This preference (acts like a button) enables the user to clear data from the cloud. -->
48    <Preference android:key="pref_clear_sync_data"
49        android:persistent="false"
50        android:title="@string/clear_sync_data_title"
51        android:summary="@string/clear_sync_data_summary"
52        android:dependency="pref_enable_cloud_sync" />
53
54    <!-- Title will be set programmatically to embed application name -->
55    <CheckBoxPreference
56        android:key="pref_enable_metrics_logging"
57        android:summary="@string/enable_metrics_logging_summary"
58        android:defaultValue="true"
59        android:persistent="true" />
60</PreferenceScreen>
61