diff options
author | Owen Lin <owenlin@google.com> | 2011-08-17 22:07:43 +0800 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2011-08-18 13:33:50 +0800 |
commit | f9a0a4306d589b4a4e20554fed512a603426bfa1 (patch) | |
tree | df0d55b351d5addf3c4149ce942292593b30d700 /res/xml | |
parent | a053a3179cfee3d2bb666eff5f4f03a96b092e04 (diff) | |
download | android_packages_apps_Gallery2-f9a0a4306d589b4a4e20554fed512a603426bfa1.tar.gz android_packages_apps_Gallery2-f9a0a4306d589b4a4e20554fed512a603426bfa1.tar.bz2 android_packages_apps_Gallery2-f9a0a4306d589b4a4e20554fed512a603426bfa1.zip |
Initial code for Gallery2.
fix: 5176434
Change-Id: I041e282b9c7b34ceb1db8b033be2b853bb3a992c
Diffstat (limited to 'res/xml')
-rw-r--r-- | res/xml/device_filter.xml | 19 | ||||
-rw-r--r-- | res/xml/gallery_settings.xml | 41 | ||||
-rw-r--r-- | res/xml/syncadapter.xml | 26 | ||||
-rw-r--r-- | res/xml/wallpaper_picker_preview.xml | 19 | ||||
-rw-r--r-- | res/xml/widget_info.xml | 8 |
5 files changed, 113 insertions, 0 deletions
diff --git a/res/xml/device_filter.xml b/res/xml/device_filter.xml new file mode 100644 index 000000000..36cd13da7 --- /dev/null +++ b/res/xml/device_filter.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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. +--> +<resources> + <!-- filter for PTP devices --> + <usb-device class="6" subclass="1" protocol="1" /> +</resources> diff --git a/res/xml/gallery_settings.xml b/res/xml/gallery_settings.xml new file mode 100644 index 000000000..8490454ad --- /dev/null +++ b/res/xml/gallery_settings.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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"> + <PreferenceCategory + android:key="prefs_account_settings" + android:title="@string/prefs_accounts"/> + <PreferenceCategory + android:title="@string/prefs_data_usage"> + <CheckBoxPreference + android:key="prefs_sync_on_wifi_only" + android:title="@string/sync_on_wifi_only" /> + </PreferenceCategory> + <PreferenceCategory + android:key="prefs_auto_upload_settings" + android:title="@string/prefs_auto_upload"> + <com.android.gallery3d.settings.AutoUploadHelpTextPreference /> + <CheckBoxPreference + android:key="prefs_auto_upload_enabled" + android:title="@string/enable_auto_upload"/> + </PreferenceCategory> + <PreferenceCategory + android:title="@string/prefs_other_settings"> + <Preference + android:key="prefs_about_gallery" + android:title="@string/about_gallery"/> + </PreferenceCategory> +</PreferenceScreen> diff --git a/res/xml/syncadapter.xml b/res/xml/syncadapter.xml new file mode 100644 index 000000000..d60bd5a96 --- /dev/null +++ b/res/xml/syncadapter.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/** + * Copyright (c) 2009, 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. + */ +--> + +<!-- The attributes in this XML file provide configuration information --> +<!-- for the SyncAdapter. --> + +<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android" + android:contentAuthority="com.android.gallery3d.picasa.contentprovider" + android:accountType="com.google" +/> diff --git a/res/xml/wallpaper_picker_preview.xml b/res/xml/wallpaper_picker_preview.xml new file mode 100644 index 000000000..759ff6fd4 --- /dev/null +++ b/res/xml/wallpaper_picker_preview.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 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. +--> + +<wallpaper-preview xmlns:android="http://schemas.android.com/apk/res/android" + android:staticWallpaperPreview="@drawable/wallpaper_picker_preview"> +</wallpaper-preview> diff --git a/res/xml/widget_info.xml b/res/xml/widget_info.xml new file mode 100644 index 000000000..5f71192bd --- /dev/null +++ b/res/xml/widget_info.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" + android:minWidth="220dp" + android:minHeight="220dp" + android:updatePeriodMillis="86400000" + android:previewImage="@drawable/preview" + android:initialLayout="@layout/appwidget_main" + android:configure="com.android.gallery3d.widget.WidgetConfigure"/> |