Giter Club home page Giter Club logo

titanium-android-pinchview's Introduction

Android pinch view for Titanium Android 1.8.1

This project should be able to be deployed in Eclipse as described in Titanium Mobile's Android Module guide (Building from Eclipse section). You just need to update the build.properties and class paths to point to where everything is on your system. You will need to set up your system as in the Android module guide (Environment setup).

Android module developer's guide http://wiki.appcelerator.org/display/guides/Android+Module+Development+Guide

Description

This module will fire 4 distinct events: multiStart, multiMove, multiEnd, and pinch. The reason for this is that the original start move and end events swallow the event and prevent it from reaching pinch, and because move needs to be handled a little differently.

multiStart returns e with x and y, they are identical to touchstart.

multiMove return e with x and y, where x and y are not the absolute positions but the DELTA from the last position (in order to prevent jumps after scaling).

multiEnd returns e with x and y, they are identical to touchend

pinch returns the scale that the object should be. It remembers the scale between pinches, so you don't need to account for that. It will clamp between minZoomValue and maxZoomValue, which can be set as arguments during the view creation, or afterwords via the dot operator.

For an example, please see example/app.js

titanium-android-pinchview's People

Watchers

 avatar

titanium-android-pinchview's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.