summaryrefslogtreecommitdiffstats
path: root/res/values/attrs.xml
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2009-05-18 15:23:12 -0700
committerJeff Sharkey <jsharkey@android.com>2009-05-18 16:23:20 -0700
commit3f17759408b4cec77ab43ee76cc75805577ca34e (patch)
tree5bf3aa39b559dfdfc605ae58668e27674f8d64d3 /res/values/attrs.xml
parent3a0e259063162bf86e761e7e9c99936d499a2c3d (diff)
downloadpackages_apps_Contacts-3f17759408b4cec77ab43ee76cc75805577ca34e.tar.gz
packages_apps_Contacts-3f17759408b4cec77ab43ee76cc75805577ca34e.tar.bz2
packages_apps_Contacts-3f17759408b4cec77ab43ee76cc75805577ca34e.zip
Adopted SocialContract and first pass at fast-track.
Showing live data from SocialProvider through recently added SocialContract constants, symlinked for now since the contract isn't in the framework yet. Added first pass at fast-track using edge-based triggering from the social list. Wraps the ListView in a EdgeTriggerView that watches for "pull" actions from a specific edge. Also adds concept of a FloatyListView to keep a "floaty" window anchored with respect to ListView scrolling. The fast-track window summarizes contact methods based on anyone system-wide who offers an icon for the mime-types. For example, the testing app pushes app-specific contact methods into the Data table, and then provides icons through its RemoteViewsMapping XML resource. Changed SHOW_OR_CREATE to accept Aggregate Uris and now shows fast-track in cases where a single matching aggregate is found. Abstracted AsyncQueryHandler to a QueryCompletedListener callback interface to clean up code that uses it while still protecting against leaked Contexts.
Diffstat (limited to 'res/values/attrs.xml')
-rw-r--r--res/values/attrs.xml37
1 files changed, 37 insertions, 0 deletions
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
new file mode 100644
index 000000000..08f02dbc4
--- /dev/null
+++ b/res/values/attrs.xml
@@ -0,0 +1,37 @@
+<?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.
+-->
+
+<resources>
+ <!-- Maps a contact kind or mime-type to a RemoteViews XML formatter -->
+ <declare-styleable name="Mapping">
+ <!-- Mime-type handled by this mapping -->
+ <attr name="mimeType" format="string" />
+ <!-- RemoteViews XML that should be used to format this data -->
+ <attr name="remoteViews" format="reference" />
+ <!-- Icon that should be used to represent this data -->
+ <attr name="icon" format="reference" />
+ </declare-styleable>
+
+ <declare-styleable name="EdgeTriggerView">
+ <attr name="edgeWidth" format="dimension" />
+ <attr name="listenEdges">
+ <flag name="left" value="0x01" />
+ <flag name="right" value="0x02" />
+ </attr>
+ </declare-styleable>
+
+
+</resources>