Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gotokatsuya/FlickableView
Flickable ImageView for Android. It's like a view of twitter's detail image.
https://github.com/gotokatsuya/FlickableView
Last synced: about 6 hours ago
JSON representation
Flickable ImageView for Android. It's like a view of twitter's detail image.
- Host: GitHub
- URL: https://github.com/gotokatsuya/FlickableView
- Owner: gotokatsuya
- License: apache-2.0
- Created: 2015-07-05T15:49:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-08T16:32:47.000Z (over 9 years ago)
- Last Synced: 2024-04-13T03:24:44.283Z (7 months ago)
- Language: Java
- Homepage:
- Size: 21.2 MB
- Stars: 150
- Watchers: 8
- Forks: 20
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-android-ui - https://github.com/gotokatsuya/FlickableView
- awesome-android-ui - https://github.com/gotokatsuya/FlickableView
README
# FlickableView
![](https://github.com/gotokatsuya/FlickableView/blob/master/doc/scaled_sample.gif)Flickable ImageView for Android. It's like a view of twitter's detail image.
It's possible that other views animate with FlickableView.
## Feature
- Move (Up, Down)
- Zoom
- Flick (Up, Down)## How to use
```java
final FlickableImageView flickableImageView = (FlickableImageView) findViewById(R.id.fiv);
// Resource
flickableImageView.setImageResource(R.drawable.travel);// Http Request
// String url = "...";
// Picasso.with(context).load(url).into(flickableImageView);
// Listeners
// Flick Listener
flickableImageView.setOnFlickListener(new FlickableImageView.OnFlickableImageViewFlickListener() {
@Override
public void onStartFlick() {
}
@Override
public void onFinishFlick() {
}
});
// Drag Listener
flickableImageView.setOnDraggingListener(new FlickableImageView.OnFlickableImageViewDraggingListener() {
@Override
public void onStartDrag() {
}
@Override
public void onCancelDrag() {
}
});
// SingleTap Listener
flickableImageView.setOnSingleTapListener(new FlickableImageView.OnFlickableImageViewSingleTapListener() {
@Override
public void onSingleTapConfirmed() {
}
});
// DoubleTap Listener
flickableImageView.setOnDoubleTapListener(new FlickableImageView.OnFlickableImageViewDoubleTapListener() {
@Override
public void onDoubleTap() {
}
});
// Zoom Listener
flickableImageView.setOnZoomListener(new FlickableImageView.OnFlickableImageViewZoomListener() {
@Override
public void onStartZoom() {
}
@Override
public void onBackFromMinScale() {
}
});
```
[Check this sample code.](https://github.com/gotokatsuya/FlickableView/blob/master/app/src/main/java/com/goka/sample/MainActivity.java)## Gradle
```java
repositories {
jcenter()
}dependencies {
compile 'com.github.goka.flickableview:flickableview:1.0.0'
}
```## Release
1.0.0
First release.## Reference
[ImageViewZoom](https://github.com/sephiroth74/ImageViewZoom)