Skip to content

aulisius/flip-zeus

Repository files navigation

flip-zeus

Flip an image

(╯°□°)╯︵ ┻━┻

Take 6 lines of Java and make it a library

What does this do?

ImageFlipper lets you flip images horizontally or vertically.

How to use

Why would you use this though !?!?!

In your app's build.gradle

dependencies {
    compile 'com.github.flipzeus:flipzeus:0.0.1'
}

API

Hahaha

To flip vertically

ImageView mImageView = (ImageView) findViewById(R.id.imageView);
ImageFlipper.flip(mImageView, FlipDirection.VERTICAL);

To flip horizontally

ImageView mImageView = (ImageView) findViewById(R.id.imageView);
ImageFlipper.flip(mImageView, FlipDirection.HORIZONTAL);

You can also pass Drawables or even Bitmaps directly.

Releases

No releases published

Packages

No packages published

Languages