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

                                

                        }

                        

                });

 

你可能感兴趣的:(imageview)