Code example for PagerAdapter

Methods: getLayoutInflater

0
	private class ImagePagerAdapter extends PagerAdapter { 
 
		private List<GalleryImageItem> images;
		private LayoutInflater inflater;
 
		ImagePagerAdapter( List<GalleryImageItem> images ) {
			this.images = images;
			inflater = getLayoutInflater();
		} 
 
		/* (non-Javadoc) 
		 * @see android.support.v4.view.PagerAdapter#destroyItem(android.view.ViewGroup, int, java.lang.Object) 
		 */ 
		@Override 
		public void destroyItem( ViewGroup container, int position, Object object ) {
			container.removeView( (View) object );
		} 
 
		/* (non-Javadoc) 
		 * @see android.support.v4.view.PagerAdapter#finishUpdate(android.view.ViewGroup) 
Experience pair programming with AI  Get Codota for Java