Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
res
 
 
 
 
 
 
 
 
 
 
 
 

README.md

scale-imageview-android

Add pinch-in and pinch-out function to Android ImageVIew.

  • Double-tap to enlarge
  • Can pinch to zoom in or out on the view

Example Code

Very similar ImageView

Setting Layout XML

<com.matabii.dev.scaleimageview.ScaleImageView
    android:id="@+id/image"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:src="@drawable/sample" />

or edit java source

    ScaleImageView image = (ScaleImageView) findViewById(R.id.image);
    Bitmap bitmap = BitmapFactory.decodeStream(is);
    image.setImageBitmap(bitmap);

====== Download the sample application

http://code.google.com/p/scale-imageview-android/downloads/detail?name=ScaleImageView.apk

About

Add pinch-in and pinch-out function to Android ImageVIew.

Resources

License

Releases

No releases published

Languages

You can’t perform that action at this time.