ListView的添加headView

View headerView = getLayoutInflater().inflate(R.layout.foo_list_header, null);

mListView = (ListView) findViewById(…);
mListView.addHeaderView(headerView);

setListAdapter(…);

你可能感兴趣的:(ListView的添加headView)