2014年1月24日 星期五

android view draggable , rotatable , scaleable by android-gesture-detectors framework

nice work by this https://github.com/Almeros/android-gesture-detectors

Basically you just imply this framework and make some flexible modified to a ImageView . there is a sample of his project .

The change i did is made the ImageView to not match the parent to whole screen instead just wrap the content . the hardest part should be rotation . you have to modify the width and height to wrap the dynamic content . it took me some hours to figure out but turned out it was just junior high school math .. bummer .