Code example for PagerAdapter

Methods: getLayoutInflater

0
 
		private String[] images;
		private String[] titles;
		private LayoutInflater inflater;
 
		ImagePagerAdapter(String[] images, String[] titles) {
			this.images = images;
			this.titles = titles;
			inflater = getLayoutInflater();
		} 
 
		@Override 
		public void destroyItem(ViewGroup container, int position, Object object) {
			((ViewPager) container).removeView((View) object);
		} 
 
		@Override 
		public void finishUpdate(View container) {
		} 
 
		@Override