aboutsummaryrefslogtreecommitdiff
path: root/input
diff options
context:
space:
mode:
authorShailen Tuli <shailentuli@google.com>2014-12-16 08:17:01 -0800
committerShailen Tuli <shailentuli@google.com>2014-12-18 10:22:54 -0800
commit50d5123a2bd6d93fb591baed40e3ce7a741a044d (patch)
tree9963a0b7d9696874c01edc8dd004668f74df0467 /input
parente2d472f4981dd1695eb5e2aabe03b39b383b770e (diff)
downloadandroid-50d5123a2bd6d93fb591baed40e3ce7a741a044d.tar.gz
Metadata for BasicMultitouch sample
Change-Id: I5a9900e5cae082c895ce22f32fbbfbd44ace948a
Diffstat (limited to 'input')
-rw-r--r--input/multitouch/BasicMultitouch/screenshots/icon-web.pngbin0 -> 74754 bytes
-rw-r--r--input/multitouch/BasicMultitouch/screenshots/intro.pngbin0 -> 80551 bytes
-rw-r--r--input/multitouch/BasicMultitouch/screenshots/touches.pngbin0 -> 31499 bytes
-rw-r--r--input/multitouch/BasicMultitouch/template-params.xml47
4 files changed, 45 insertions, 2 deletions
diff --git a/input/multitouch/BasicMultitouch/screenshots/icon-web.png b/input/multitouch/BasicMultitouch/screenshots/icon-web.png
new file mode 100644
index 00000000..2f5f7093
--- /dev/null
+++ b/input/multitouch/BasicMultitouch/screenshots/icon-web.png
Binary files differ
diff --git a/input/multitouch/BasicMultitouch/screenshots/intro.png b/input/multitouch/BasicMultitouch/screenshots/intro.png
new file mode 100644
index 00000000..4d1f5353
--- /dev/null
+++ b/input/multitouch/BasicMultitouch/screenshots/intro.png
Binary files differ
diff --git a/input/multitouch/BasicMultitouch/screenshots/touches.png b/input/multitouch/BasicMultitouch/screenshots/touches.png
new file mode 100644
index 00000000..a7718874
--- /dev/null
+++ b/input/multitouch/BasicMultitouch/screenshots/touches.png
Binary files differ
diff --git a/input/multitouch/BasicMultitouch/template-params.xml b/input/multitouch/BasicMultitouch/template-params.xml
index 76778187..40d2a187 100644
--- a/input/multitouch/BasicMultitouch/template-params.xml
+++ b/input/multitouch/BasicMultitouch/template-params.xml
@@ -28,15 +28,58 @@
<strings>
<intro>
<![CDATA[
-This samples demonstrates the use of MotionEvent properties to keep track of individual touches
+This sample demonstrates the use of MotionEvent properties to keep track of individual touches
across multiple touch events.
\n\nTouch the screen with multiple fingers to show that the pointer id
-(also represented by a colour) does not change as new touch events are received.</string>
+(also represented by a color) does not change as new touch events are received.
]]>
</intro>
</strings>
<template src="base"/>
<common src="logger"/>
+ <metadata>
+ <status>PUBLISHED</status>
+ <categories>UI, Views, Input</categories>
+ <technologies>Android</technologies>
+ <languages>Java</languages>
+ <solutions>Mobile</solutions>
+ <level>INTERMEDIATE</level>
+ <icon>screenshots/icon-web.png</icon>
+ <screenshots>
+ <img>screenshots/intro.png</img>
+ <img>screenshots/touches.png</img>
+ </screenshots>
+ <api_refs>
+ <android>android.view.MotionEvent</android>
+ </api_refs>
+ <description>
+<![CDATA[
+Sample demonstrates the use of [MotionEvent][1] properties to keep track of
+individual touches across multiple touch events.
+[1]: http://developer.android.com/reference/android/view/MotionEvent.html
+]]>
+ </description>
+
+ <intro>
+<![CDATA[
+This is an example of keeping track of individual touches across multiple
+[MotionEvent][1]s.
+
+This sample uses a custom View (`TouchDisplayView`) that responds to
+touch events and draws a colored circle for each touch point. The view holds
+data related to a touch pointer, including its current position, pressure,
+and its past touch history.
+
+The View draws graphics based on data associated with each touch event to a
+canvas. A large circle indicates the current position of a touch, while smaller
+trailing circles represent previous positions for that touch.
+The size of the large circle is scaled depending on the pressure of the user's
+touch.
+
+[1]: http://developer.android.com/reference/android/view/MotionEvent.html
+]]>
+ </intro>
+ </metadata>
</sample>