Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/thuytrinh/android-collage-views
- Owner: thuytrinh
- Created: 2012-12-08T19:07:35.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2019-04-16T10:05:34.000Z (almost 6 years ago)
- Last Synced: 2023-11-07T15:16:00.148Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 905 KB
- Stars: 329
- Watchers: 21
- Forks: 89
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - android-collage-views - Draggable, rotatable, and scalable views for Android (etc)
- awesome - android-collage-views - Draggable, rotatable, and scalable views for Android (etc)
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.