DraggableView
Introduction: Draggable views with rotation and skew/scale effects
Tags:
拖动视图-Draggable views with rotation and skew/scale effects.
Usage
- Implement
DragController.IDragViewGroup
- Create instance of
DragController
- Override
onTouchEvent
of yourViewGroup
and callDragController#onTouchEvent
:
See full sample at@Override public boolean onTouchEvent(MotionEvent event) { return dragController.onTouchEvent(event); }
SampleGridContainer
Animation adjustments
SkewView
andRotateView
containe multipliers which change rotation, skew and scale values.Download
repositories { maven { url "https://jitpack.io" } } //... dependencies { //... compile 'com.github.elevenetc:draggableview:v1.0.1' }
Licence
http://www.apache.org/licenses/LICENSE-2.0