1

How to No Repeat of Object instantiateItem() in PagerAdapter in android

view story
linux-howto

http://stackoverflow.com – My logcat in print first time take position 0 after repeate this method and take position 1,i need no repete this method. public Object instantiateItem(ViewGroup container, int position) { Context context = MainActivity.this; Log.d("position","position" +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(mImages[position]); ((ViewPage (HowTos)