备忘-Android ViewPager 子页监听事件
@Override
public Object instantiateItem(View arg0, int arg1) {
((ViewPager) arg0).addView(mListViews.get(arg1), 0);
if(arg1==0){
View lay1=mListViews.get(arg1);
ImageButton firstimg0=(ImageButton)lay1.findViewById(R.id.firstimg);
firstimg0.setOnClickListener(foc);
}
return mListViews.get(arg1);
}