summaryrefslogtreecommitdiffstats
path: root/res/xml/city_appwidget.xml
diff options
context:
space:
mode:
authorJames Lemieux <jplemieux@google.com>2016-04-05 18:40:40 -0700
committerJames Lemieux <jplemieux@google.com>2016-04-06 14:05:28 -0700
commit592c66b3eb497d24d1528fb2597059c6e4ec6620 (patch)
treef14553bd763f81892b049f9f4fe76b84bb66a011 /res/xml/city_appwidget.xml
parenta5c107781dc8f8239bc980d19e1e31ed262e8829 (diff)
downloadandroid_packages_apps_DeskClock-592c66b3eb497d24d1528fb2597059c6e4ec6620.tar.gz
android_packages_apps_DeskClock-592c66b3eb497d24d1528fb2597059c6e4ec6620.tar.bz2
android_packages_apps_DeskClock-592c66b3eb497d24d1528fb2597059c6e4ec6620.zip
Introduce world city widget
Bug: 27282291 Bug: 27693716 Bug: 24126517 This CL includes: - full implementation of city widget - event logging for creation/deletion of widgets - tapping all widgets now opens the app in the prior state (not the clock tab) Change-Id: Ia43ec0ebf2f02aba6b7e277e5feca3e8afa91e64
Diffstat (limited to 'res/xml/city_appwidget.xml')
-rw-r--r--res/xml/city_appwidget.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/res/xml/city_appwidget.xml b/res/xml/city_appwidget.xml
new file mode 100644
index 000000000..3dbbc88fe
--- /dev/null
+++ b/res/xml/city_appwidget.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2016 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.
+-->
+
+<appwidget-provider
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:configure="com.android.deskclock.worldclock.WidgetCitySelectionActivity"
+ android:initialLayout="@layout/city_widget"
+ android:minHeight="59dp"
+ android:minWidth="136dp"
+ android:minResizeHeight="59dp"
+ android:minResizeWidth="136dp"
+ android:previewImage="@drawable/appwidget_city_clock_preview"
+ android:resizeMode="horizontal|vertical"
+ android:updatePeriodMillis="0"
+ android:widgetCategory="keyguard|home_screen" /> \ No newline at end of file