Code example for PagerAdapter

Methods: finishUpdate

0
		view = null;
	} 
 
	@Override 
	public void finishUpdate(ViewGroup container) {
		super.finishUpdate(container);
	} 
 
	@Override 
	public Object instantiateItem(ViewGroup container, int position) {
		// initialize TouchImageView 
		int btResource = m_pics[position];
	    Bitmap bitmap = BitmapFactory.decodeResource(m_context.getResources(), btResource);
 
	    DynamicZoomControl zoomControl = new DynamicZoomControl();
	    PinchZoomListener pinchZoomListener = new PinchZoomListener(m_context);
        pinchZoomListener.setZoomControl(zoomControl);
         
        ImageZoomView zoomView = new ImageZoomView(m_context, null);
        zoomView.setZoomState(zoomControl.getZoomState());
        zoomView.setImage(bitmap);