ImageView Zoom and Scroll

custom collge papers

l effet du viagra dure combien de temps dissertation writing services in singapore business plan Update: the source code has moved to github, so it’s easier for anyone to fork it!

homework help line com

comprehension dissertation thesis and term papers mth101 As long as Android doesn’t have a built-in ImageView widget with zoom and scroll capabilities I tries to create one by myself starting from the google repository. book report on the help

pay for university essay The result is pretty nice so I’m posting here the source code, if anyone is interested, or simply doesn’t want to waste the time creating a new one. my dog does my homework poetry book

buy viagra kuta bali Here’s a sample code on how to use it in an Activity:

pay to complete homework



import android.database.Cursor;
import android.os.Bundle;
import android.provider.MediaStore.Images;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Toast;

public class ImageZoomActivity extends Activity {
   private ImageViewTouch  mImageView;
   protected void onCreate( Bundle savedInstanceState )
      super.onCreate( savedInstanceState );
      requestWindowFeature( Window.FEATURE_NO_TITLE );
      setContentView( R.layout.main );
      getWindow().addFlags( WindowManager.LayoutParams.FLAG_FULLSCREEN );
   public void onContentChanged()
      mImageView = (ImageViewTouch)findViewById( );
    * pick a random image from your library
    * and display it

   public void selectRandomImage()
      Cursor c = getContentResolver().query( Images.Media.EXTERNAL_CONTENT_URI, null, null, null, null );
      if ( c != null ) {
         int count = c.getCount();
         int position = (int)( Math.random() * count );
         if ( c.moveToPosition( position ) ) {
            long id = c.getLong( c.getColumnIndex( Images.Media._ID ) );
            int orientation = c.getInt( c.getColumnIndex( Images.Media.ORIENTATION ) );
            Uri imageUri = Uri.parse( Images.Media.EXTERNAL_CONTENT_URI + "/" + id );
            Bitmap bitmap;
            try {
               bitmap = ImageLoader.loadFromUri( this, imageUri.toString(), 1024, 1024 );
               mImageView.setImageBitmapReset( bitmap, orientation, true );
            catch ( IOException e ) {
               Toast.makeText( this, e.toString(), Toast.LENGTH_LONG ).show();
         c = null;
} ghostwriter episodes online  

medicamento viagra

how to write a thesis proposal essay for college why do you want to attend

what color are viagra pills Anyway, if you want to download the source, here is the eclipse source project:…/

get link