//默认可点击的HeaderView View headView = inflater.inflate(R.layout.search_top, null); mListView.addHeaderView(headView) //这样可以让HeaderView不可点击 mListView.addHeaderView(headView ,null,false);
//默认可点击的HeaderView View headView = inflater.inflate(R.layout.search_top, null); mListView.addHeaderView(headView) //这样可以让HeaderView不可点击 mListView.addHeaderView(headView ,null,false);