Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thuytrinh/android-collage-views

Draggable, rotatable, and scalable views for Android
https://github.com/thuytrinh/android-collage-views

Last synced: 3 months ago
JSON representation

Draggable, rotatable, and scalable views for Android

Awesome Lists containing this project

README

        

android-collage-views
==================

Introduction
------------

"A video is worth a million words"
[Watch the demo here](http://youtu.be/yHmA-bMqBRI)

*(Note: Work only with API 11+)*

Usage
-----

1. Create a parent view having `splitMotionEvents` enabled, and having child views as below:

```xml













```

2. Find the child views and assign `MultiTouchListener`:

```java
findViewById(R.id.collageView1).setOnTouchListener(new MultiTouchListener());
findViewById(R.id.collageView2).setOnTouchListener(new MultiTouchListener());
```

3. By default, translating, scaling, and rotating are enabled. However, if you want a child view not to be scaled but translated or rotated only, toggling `isScaleEnabled`, `isTranslateEnabled`, `isRotateEnabled` appropriately will do the trick.