summaryrefslogtreecommitdiffstats
path: root/res/xml
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-08-16 04:59:08 -0700
committerSunny Goyal <sunnygoyal@google.com>2017-09-13 14:04:35 -0700
commit952e63d0065d79d2bd9557ed7f28e96adb39ca9a (patch)
tree3f07803d9731a9c56ee7c0d707385b0272966e6b /res/xml
parentbe213def874f580a58b2ee4a94ba503a6d7e3f15 (diff)
downloadandroid_packages_apps_Trebuchet-952e63d0065d79d2bd9557ed7f28e96adb39ca9a.tar.gz
android_packages_apps_Trebuchet-952e63d0065d79d2bd9557ed7f28e96adb39ca9a.tar.bz2
android_packages_apps_Trebuchet-952e63d0065d79d2bd9557ed7f28e96adb39ca9a.zip
Fixing custom widgets support:
> Moving the definitions to xml so that it is easier to override in derivative projects > Fixing verious bind and save logic for custom widgets > Adding feature flag to easily disable custom widgets Change-Id: I0e278bc7dd415713029364060ef10842da990be9
Diffstat (limited to 'res/xml')
-rw-r--r--res/xml/custom_widgets.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/res/xml/custom_widgets.xml b/res/xml/custom_widgets.xml
new file mode 100644
index 000000000..4b5438650
--- /dev/null
+++ b/res/xml/custom_widgets.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2017 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.
+-->
+
+<widgets>
+ <!-- Sample widget definition
+ <widget
+ android:label="My custom widget"
+ android:initialLayout="@layout/sample_widget_layout"
+ android:icon="@drawable/ic_launcher_home"
+ android:resizeMode="horizontal|vertical"
+ launcher:numRows="2"
+ launcher:numColumns="3"
+ launcher:numMinRows="1"
+ launcher:numMinColumns="2"
+ launcher:providerId="1" />
+ -->
+</widgets> \ No newline at end of file