备忘-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);
}

posted @ 2014-03-07 15:42  郑某  阅读(638)  评论(0编辑  收藏  举报