Code example for PagerAdapter

Methods: getLayoutInflater

		private String[] images;
		private String[] titles;
		private LayoutInflater inflater;
		ImagePagerAdapter(String[] images, String[] titles) {
			this.images = images;
			this.titles = titles;
			inflater = getLayoutInflater();
		public void destroyItem(ViewGroup container, int position, Object object) {
			((ViewPager) container).removeView((View) object);
		public void finishUpdate(View container) {
Connect your IDE to all the code out there  Get Codota for Java