yudong80 / RegionView

A simple Android Layout that enables drag and zoom for child Views.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RegionView

A simple Android Layout that enables drag and zoom for child Views. You can check out the explanation on StackOverflow.

How to Use

The RegionView is a subclass of a RelativeLayout, which acts as its own OnTouchListener. Simply add a View to the RegionView and it will become immediately draggable and scalable. You may limit child Views to only be dragged and scaled within the confines of RegionView by calling RegionView.setWrapContent(true).

Supported API Levels

Minimum API Level 11 (Honeycomb). (Uses View.setScaleX() and View.setScaleY(), and the likes).

About

A simple Android Layout that enables drag and zoom for child Views.

License:Apache License 2.0


Languages

Language:Java 100.0%