Skip to content

Android lib which let you to drag, resize and rotate a drawable.

Notifications You must be signed in to change notification settings

Mun0n/TurboImageProject

Repository files navigation

TurboImageProject

Twitter GitHub Issues License

TurboImageView let you to add a complete interactive ImageView to your interface!

TurboImageView preview

With this ImageView you can drag, resize and rotate your drawables. Easy to implement, follow this simple steps:

  • Add the TurboImageView to your project, via maven
compile 'com.munon:turboimageview:1.2.0'
  • Add the TurboImageView to your layout, put over other ImageView if you want to set the drawables over it.
<com.munon.turboimageview.TurboImageView
        android:id="@+id/turboImageView"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
  • Load the images in your activity using the loadImages method (you can add a resource, drawable or bitmap):
turboImageView.addObject(this, R.drawable.ic_launcher);
turboImageView.addObject(this, drawable);
turboImageView.addObject(this, bitmap);
  • Remove the last selected view using the deleteSelected method:
turboImageView.removeSelectedObject();
  • If you need to remove the selected view (for example to make a screenshot), you will need this method:
turboImageView.deselectAll();
  • To flip an object in a vertical way (Added by hrules6872, thanks bro)
turboImageView.toggleFlippedHorizontallySelectedObject();

You will find other related methods like, added by hrules6872 ;-) :

  1. removeAllObjects()
  2. getSelectedObjectCount
  3. setObjectSelectedBorderColor(int borderColor)

I'm looking for put a delete button in the top left corner of an image, but at this moment I'm not capable to get the touch event in that point. If you want to help, fork me and take a look on the MultiTouchController class and the ImageObject class (where the implementation to show the close icon is done). THANKS!

Thanks to hrules6872 and alexruperez for helping me to upload this lib to github and maven!

DONE!

About

Android lib which let you to drag, resize and rotate a drawable.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages