摘要:
解决方法,重新定义gallery,禁止触发pager的触摸事件 1 public class UserGallery extends Gallery implements OnGestureListener { 2 ViewPager mPager; 3 4 public ViewPager getmPager() { 5 return mPager; 6 } 7 8 public void setmPager(ViewPager mPager) { 9 ... 阅读全文
摘要:
@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); }... 阅读全文