summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorJeff Hamilton <jham@android.com>2010-09-24 11:05:30 -0500
committerJeff Hamilton <jham@android.com>2010-09-28 20:55:15 -0500
commita9bad830efad4c098e6f874704dedc005958aedf (patch)
tree1284b501080556e799074b4cccc35a4b7f6d1b10 /res
parent4952a2f98dfb7e37949e2a598fc8bbcfd4248169 (diff)
downloadpackages_apps_browser-a9bad830efad4c098e6f874704dedc005958aedf.zip
packages_apps_browser-a9bad830efad4c098e6f874704dedc005958aedf.tar.gz
packages_apps_browser-a9bad830efad4c098e6f874704dedc005958aedf.tar.bz2
Add settings to enable bookmarks sync.
Change-Id: I86bc4ce9d21ec0a040322bd704cef46eaa17dc9c
Diffstat (limited to 'res')
-rw-r--r--res/layout/bookmarks.xml26
-rw-r--r--res/layout/import_bookmarks_dialog.xml47
-rw-r--r--res/layout/import_bookmarks_dialog_button.xml22
-rw-r--r--res/values/strings.xml30
-rw-r--r--res/xml/personal_preferences.xml24
-rw-r--r--res/xml/preference_headers.xml10
6 files changed, 132 insertions, 27 deletions
diff --git a/res/layout/bookmarks.xml b/res/layout/bookmarks.xml
index f5c9331..d90620c 100644
--- a/res/layout/bookmarks.xml
+++ b/res/layout/bookmarks.xml
@@ -25,29 +25,11 @@
android:orientation="vertical"
>
- <LinearLayout
- android:layout_width="match_parent"
+ <Button android:id="@+id/up"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:orientation="horizontal"
- >
- <Button android:id="@+id/up"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/defaultBookmarksUpButton"
- />
-
- <!-- space -->
- <View
- android:layout_width="0dip"
- android:layout_height="0dip"
- android:layout_weight="1"
- />
-
- <Spinner android:id="@+id/accounts"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- />
- </LinearLayout>
+ android:text="@string/defaultBookmarksUpButton"
+ />
<GridView android:id="@+id/grid"
android:layout_width="match_parent"
diff --git a/res/layout/import_bookmarks_dialog.xml b/res/layout/import_bookmarks_dialog.xml
new file mode 100644
index 0000000..f10f35d
--- /dev/null
+++ b/res/layout/import_bookmarks_dialog.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:padding="8dip"
+>
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/import_bookmarks_dialog_description"
+ />
+
+ <LinearLayout android:id="@+id/accountList"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ />
+
+ <Button android:id="@+id/remove"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/import_bookmarks_dialog_remove"
+ android:maxLines="2"
+ />
+
+ <Button android:id="@+id/cancel"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@android:string/cancel"
+ />
+</LinearLayout> \ No newline at end of file
diff --git a/res/layout/import_bookmarks_dialog_button.xml b/res/layout/import_bookmarks_dialog_button.xml
new file mode 100644
index 0000000..cf8f628
--- /dev/null
+++ b/res/layout/import_bookmarks_dialog_button.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<Button xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/import_bookmarks_dialog_remove"
+ android:maxLines="2"
+/>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 65f555c..33e30b0 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -322,6 +322,25 @@
<string name="pref_content_landscape_only">Landscape-only display</string>
<!-- Settings summary -->
<string name="pref_content_landscape_only_summary">Display pages only in the wider, landscape screen orientation</string>
+
+ <!-- Settings screen & section title for "Personal settings". These include things like
+ configuring bookmark syncing to Google servers and form auto fill settings. [CHAR-LIMIT=32] -->
+ <string name="pref_personal_title">Personal settings</string>
+ <!-- Checkbox setting to enable or disable syncing bookmarks and other data with Google Chrome. [CHAR-LIMIT=48] -->
+ <string name="pref_personal_sync_with_chrome">Sync with Google Chrome</string>
+ <!-- Checkbox setting to enable or disable syncing bookmarks and other data with Google Chrome. [CHAR-LIMIT=none] -->
+ <string name="pref_personal_sync_with_chrome_summary">Share bookmarks &amp; other data between Android Browser and Google Chrome</string>
+ <!-- Label indicating which Google account is being used to sync bookmarks between Android and Chrome [CHAR-LIMIT=20] -->
+ <string name="pref_personal_google_account">Google account</string>
+ <!-- Checkbox setting to enable or disable syncing bookmarks with Google Chrome. [CHAR-LIMIT=32] -->
+ <string name="pref_personal_sync_bookmarks">Sync bookmarks</string>
+ <!-- Summary for a checkbox setting to enable or disable syncing bookmarks with Google Chrome. [CHAR-LIMIT=none] -->
+ <string name="pref_personal_sync_bookmarks_summary">Sync bookmarks between Android Browser and Google Chrome</string>
+ <!-- Button to start a sync of bookmarks and other data between the Android Browser and Google Chrome [CHAR-LIMIT=20] -->
+ <string name="pref_personal_start_syncing">Start syncing</string>
+ <!-- Dialog title used when asking the user which Google account they want to use to sync data between Android Browser and Google Chrome [CHAR-LIMIT=20] -->
+ <string name="pref_personal_account_dialog_title">Select Google account to share with</string>
+
<!-- Settings screen, section title -->
<string name="pref_privacy_title">Privacy settings</string>
<!-- Settings label -->
@@ -763,4 +782,15 @@
<!-- Access point for RLZ tracking. -->
<string name="rlz_access_point">Y1</string>
+ <!-- Title for a dialog asking the user what they want to do with their bookmarks when adding a sync account [CHAR-LIMIT=32] -->
+ <string name="import_bookmarks_dialog_title">Sync with Google account</string>
+
+ <!-- Description for a dialog asking the user what they want to do with their bookmarks when adding a sync account [CHAR-LIMIT=none] -->
+ <string name="import_bookmarks_dialog_description">Your Android bookmarks are not associated with a Google account</string>
+
+ <!-- Button allowing users to remove all of their existing bookmarks when setting up syncing with their bookmarks stored in Google Chrome [CHAR-LIMIT=64] -->
+ <string name="import_bookmarks_dialog_remove">Remove your Android bookmarks</string>
+
+ <!-- Button allowing users to import all of their existing bookmarks into an account when setting up syncing with their bookmarks stored in Google Chrome [CHAR-LIMIT=64] -->
+ <string name="import_bookmarks_dialog_import">Add your Android bookmarks to bookmarks for <xliff:g id="Google account" example="account@example.com">%s</xliff:g></string>
</resources>
diff --git a/res/xml/personal_preferences.xml b/res/xml/personal_preferences.xml
new file mode 100644
index 0000000..14b057c
--- /dev/null
+++ b/res/xml/personal_preferences.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <Preference android:key="sync_with_chrome"
+ android:title="@string/pref_personal_sync_with_chrome"
+ android:summary="@string/pref_personal_sync_with_chrome_summary"
+ />
+
+</PreferenceScreen>
diff --git a/res/xml/preference_headers.xml b/res/xml/preference_headers.xml
index 54660b4..1a54990 100644
--- a/res/xml/preference_headers.xml
+++ b/res/xml/preference_headers.xml
@@ -19,11 +19,11 @@
<header android:fragment="com.android.browser.preferences.PageContentPreferencesFragment"
android:title="@string/pref_content_title"
/>
-<!--
- <header android:fragment="com.example.android.apis.preference.PreferenceWithHeaders$Prefs2Fragment"
- android:title="Personal settings"
- </header>
--->
+
+ <header android:fragment="com.android.browser.preferences.PersonalPreferencesFragment"
+ android:title="@string/pref_personal_title"
+ />
+
<header android:fragment="com.android.browser.preferences.PrivacyPreferencesFragment"
android:title="@string/pref_privacy_title"
/>