saiwu-bigkoo / Android-ConvenientBanner

Simple and convenient banner, loop viewpager with 3D effects
4.77k stars 1.06k forks source link

listView headerView 里加这个空间还是不能点击啊? #67

Closed xihacode closed 8 years ago

xihacode commented 8 years ago

View banner = LayoutInflater.from(getContext()).inflate(R.layout.header_banner, null); convenientBanner = (ConvenientBanner) banner.findViewById(R.id.convenient_banner); listView.addHeaderView(banner,null,false);

xihacode commented 8 years ago

convenientBanner.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(int position) { ToastUtils.showShort(getContext(), "cilck++++: " + position + ""); Log.d("123", "aaadad"); } });

saiwu-bigkoo commented 8 years ago

更新下2.0.2,最新的MainActivity里面也加入了addHeaderView例子demo,这次应该可以了

xihacode commented 8 years ago

更新后点击还是没效果啊