summaryrefslogtreecommitdiffstats
path: root/core/res
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-01-02 16:37:43 -0800
committerJeff Brown <jeffbrown@google.com>2011-01-04 17:31:24 -0800
commitb4ff35df5c04aec71fce7e90a6d6f9ef7180c2ad (patch)
treee4473f1b22e3051a8f82239256148820d4e097d5 /core/res
parenta5af5d6b122b5d7337e6640deabf7886689679eb (diff)
downloadframeworks_base-b4ff35df5c04aec71fce7e90a6d6f9ef7180c2ad.zip
frameworks_base-b4ff35df5c04aec71fce7e90a6d6f9ef7180c2ad.tar.gz
frameworks_base-b4ff35df5c04aec71fce7e90a6d6f9ef7180c2ad.tar.bz2
Mouse pointer integration.
Added support for loading the pointer icon from a resource. Moved the system server related bits of the input manager out of libui and into libinput since they do not need to be linked into applications. Change-Id: Iec11e0725b3add2b905c51f8ea2c3b4b0d1a2d67
Diffstat (limited to 'core/res')
-rw-r--r--core/res/res/drawable-mdpi/pointericon_default.xml5
-rw-r--r--core/res/res/drawable-mdpi/pointericon_default_bitmap.pngbin0 -> 838 bytes
-rwxr-xr-xcore/res/res/values/attrs.xml9
3 files changed, 14 insertions, 0 deletions
diff --git a/core/res/res/drawable-mdpi/pointericon_default.xml b/core/res/res/drawable-mdpi/pointericon_default.xml
new file mode 100644
index 0000000..b1357b6
--- /dev/null
+++ b/core/res/res/drawable-mdpi/pointericon_default.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<pointer-icon xmlns:android="http://schemas.android.com/apk/res/android"
+ android:bitmap="@drawable/pointericon_default_bitmap"
+ android:hotSpotX="2"
+ android:hotSpotY="2" />
diff --git a/core/res/res/drawable-mdpi/pointericon_default_bitmap.png b/core/res/res/drawable-mdpi/pointericon_default_bitmap.png
new file mode 100644
index 0000000..7e073a3
--- /dev/null
+++ b/core/res/res/drawable-mdpi/pointericon_default_bitmap.png
Binary files differ
diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml
index 588b33b..890ac7c 100755
--- a/core/res/res/values/attrs.xml
+++ b/core/res/res/values/attrs.xml
@@ -4708,4 +4708,13 @@
<!-- Minimum space between the switch and caption text -->
<attr name="switchPadding" format="dimension" />
</declare-styleable>
+
+ <declare-styleable name="PointerIcon">
+ <!-- Drawable to use as the icon bitmap. -->
+ <attr name="bitmap" format="reference" />
+ <!-- X coordinate of the icon hot spot. -->
+ <attr name="hotSpotX" format="float" />
+ <!-- Y coordinate of the icon hot spot. -->
+ <attr name="hotSpotY" format="float" />
+ </declare-styleable>
</resources>