Home | History | Annotate | only in /developers/build/prebuilts/gradle/BasicMultitouch
Up to higher level directory
NameDateSize
.google/05-Oct-2017
Application/05-Oct-2017
build.gradle05-Oct-201710
CONTRIB.md05-Oct-20171.6K
CONTRIBUTING.md05-Oct-20171.5K
gradle/05-Oct-2017
gradlew05-Oct-20175K
gradlew.bat05-Oct-20172.3K
LICENSE05-Oct-201731.5K
packaging.yaml05-Oct-2017489
README.md05-Oct-20172.7K
screenshots/05-Oct-2017
settings.gradle05-Oct-201722

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 25
     33 - Android Build Tools v25.0.3
     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 2017 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