【发布时间】:2012-07-18 06:56:07
【问题描述】:
谁能帮我找出如何将 ImageView 作为标题添加到 ListView 中?
我的代码在这里:
LayoutInflater inflater = (LayoutInflater) getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View snapshot = inflater.inflate(R.layout.map_snapshot, null);
ListView channelsList = (ListView) findViewById(R.id.channelsList);
channelsList.addHeaderView(snapshot);
现在它什么也没显示。
【问题讨论】: