title: Adding Picasso library
body: <p>I have some code in which I am using <code>view pager</code> to display drawables. I wanted to seek drawables from parse. For this, I am using <code>Picasso library</code>. I have placed <code>Picasso.jar</code> file in my projects <code>libs</code> folder and now I want help to implement it for my case in my class.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>public class ImageAdapter extends PagerAdapter {
  
  
      Context context;
      private int[] GalImages = new int[] {
          R.drawable.one,
          R.drawable.two,
          R.drawable.three
  
  
      };
      ImageAdapter(Context context){
          this.context=context;
      }
      @Override
      public int getCount() {
        return GalImages.length;
      }
  
      @Override
      public boolean isViewFromObject(View view, Object object) {
        return view == ((ImageView) object);
      }
  
      @Override
      public Object instantiateItem(ViewGroup container, int position) {
        ImageView imageView = new ImageView(context);
        int padding = context.getResources().getDimensionPixelSize(R.dimen.padding_medium);
        imageView.setPadding(padding, padding, padding, padding);
        imageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
        imageView.setImageResource(GalImages[position]);
        ((ViewPager) container).addView(imageView, 0);
        return imageView;
      }
  
      @Override
      public void destroyItem(ViewGroup container, int position, Object object) {
        ((ViewPager) container).removeView((ImageView) object);
      }
    }
  </code></pre>
  
  <p>I don't know where and how to use this line:</p>
  
  <pre><code>Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView);
  </code></pre>
  
  <p>My goal is to fetch images from the URL in <code>viewpager</code> instead of drawables.</p>