https://github.com/aulisius/flip-zeus
Flip an image all you want
https://github.com/aulisius/flip-zeus
android-library flip imageview
Last synced: 3 months ago
JSON representation
Flip an image all you want
- Host: GitHub
- URL: https://github.com/aulisius/flip-zeus
- Owner: aulisius
- Created: 2017-05-21T06:38:03.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-28T17:31:57.000Z (about 9 years ago)
- Last Synced: 2026-01-18T18:34:32.888Z (5 months ago)
- Topics: android-library, flip, imageview
- Language: Java
- Homepage:
- Size: 132 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 `Drawable`s or even `Bitmap`s directly.