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.
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
new file mode 100644
index 0000000..08f02db
--- /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>