Flickable ImageView for Android. It's like a view of twitter's detail image.
Switch branches/tags
Nothing to show
Clone or download
Latest commit dbfdec7 Jul 8, 2015
Permalink
Failed to load latest commit information.
app Bump to 1.0.0 Jul 8, 2015
doc Bump to 1.0.0 Jul 8, 2015
flickableview Bump to 1.0.0 Jul 8, 2015
gradle/wrapper Bump to 1.0.0 Jul 8, 2015
.gitignore Add docs Jul 5, 2015
LICENSE Add docs Jul 5, 2015
README.md Update README.md Jul 8, 2015
build.gradle First commit Jul 5, 2015
gradle.properties Bump to 1.0.0 Jul 8, 2015
gradlew First commit Jul 5, 2015
gradlew.bat First commit Jul 5, 2015
settings.gradle First commit Jul 5, 2015

README.md

FlickableView

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

 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.

Gradle

repositories {
    jcenter()
}

dependencies {
    compile 'com.github.goka.flickableview:flickableview:1.0.0'
}

Release

1.0.0
 First release.

Reference

ImageViewZoom