• Home
Name Date Size #Lines LOC

..--

Application/03-May-2024-813336

buildSrc/03-May-2024-1913

gradle/wrapper/03-May-2024-65

screenshots/03-May-2024-

CONTRIB.mdD03-May-20241.6 KiB3627

LICENSED03-May-202411.1 KiB204170

README.mdD03-May-20242.7 KiB7854

build.gradleD03-May-2024259 119

gradlewD03-May-20245.2 KiB173128

gradlew.batD03-May-20242.2 KiB8561

packaging.yamlD03-May-2024489 1610

settings.gradleD03-May-202422 21

template-params.xmlD03-May-20242.8 KiB8658

README.md

1
2Android BasicMultitouch Sample
3===================================
4
5Sample demonstrates the use of [MotionEvent][1] properties to keep track of
6individual touches across multiple touch events.
7
8[1]: http://developer.android.com/reference/android/view/MotionEvent.html
9
10Introduction
11------------
12
13This is an example of keeping track of individual touches across multiple
14[MotionEvent][1]s.
15
16This sample uses a custom View (`TouchDisplayView`) that responds to
17touch events and draws a colored circle for each touch point. The view holds
18data related to a touch pointer, including its current position, pressure,
19and its past touch history.
20
21The View draws graphics based on data associated with each touch event to a
22canvas. A large circle indicates the current position of a touch, while smaller
23trailing circles represent previous positions for that touch.
24The size of the large circle is scaled depending on the pressure of the user's
25touch.
26
27[1]: http://developer.android.com/reference/android/view/MotionEvent.html
28
29Pre-requisites
30--------------
31
32- Android SDK 28
33- Android Build Tools v28.0.3
34- Android Support Repository
35
36Screenshots
37-------------
38
39<img src="screenshots/intro.png" height="400" alt="Screenshot"/> <img src="screenshots/touches.png" height="400" alt="Screenshot"/>
40
41Getting Started
42---------------
43
44This sample uses the Gradle build system. To build this project, use the
45"gradlew build" command or use "Import Project" in Android Studio.
46
47Support
48-------
49
50- Google+ Community: https://plus.google.com/communities/105153134372062985968
51- Stack Overflow: http://stackoverflow.com/questions/tagged/android
52
53If you've found an error in this sample, please file an issue:
54https://github.com/googlesamples/android-BasicMultitouch
55
56Patches are encouraged, and may be submitted by forking this project and
57submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
58
59License
60-------
61
62Copyright 2019 The Android Open Source Project, Inc.
63
64Licensed to the Apache Software Foundation (ASF) under one or more contributor
65license agreements.  See the NOTICE file distributed with this work for
66additional information regarding copyright ownership.  The ASF licenses this
67file to you under the Apache License, Version 2.0 (the "License"); you may not
68use this file except in compliance with the License.  You may obtain a copy of
69the License at
70
71http://www.apache.org/licenses/LICENSE-2.0
72
73Unless required by applicable law or agreed to in writing, software
74distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
75WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
76License for the specific language governing permissions and limitations under
77the License.
78