首页 > 代码库 > Gallery 里面怎么设置ImageView的OnClick事件

Gallery 里面怎么设置ImageView的OnClick事件

Gallery g=this.findViewById(R.id.gallery);g.setOnItemClickListener(new OnItemClickListener(){                        @Override                        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {                                // TODO Auto-generated method stub                                                        }                                        });