Home | History | Annotate | only in /developers/samples/android/input/multitouch/BasicMultitouch
Up to higher level directory
NameDateSize
Application/21-Oct-2016
build.gradle21-Oct-2016259
buildSrc/21-Oct-2016
CONTRIB.md21-Oct-20161.6K
gradle/21-Oct-2016
gradlew21-Oct-20165K
gradlew.bat21-Oct-20162.3K
LICENSE21-Oct-201631.5K
packaging.yaml21-Oct-2016489
README.md21-Oct-20162.7K
screenshots/21-Oct-2016
settings.gradle21-Oct-201622
template-params.xml21-Oct-20162.8K

README.md

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