【问题标题】:listview view error列表视图视图错误
【发布时间】:2011-10-03 12:10:31
【问题描述】:

我正在做聊天应用程序,我想在其中显示照片、适配器模型、用于列表视图中在线状态的小图标

这给出了错误:

final List<AttendeeModel> attendeesList = getAttendeesList(
                    attendees, sender);

            ListView listView = (ListView) findViewById(R.id.listView);
listView.setAdapter(new ArrayAdapter<AttendeeModel>(this,android.R.layout.simple_list_item_2, attendeesList,R.layout.row, R.id.icon));

我实现这个有多简单..

提前谢谢...

【问题讨论】:

标签: android


【解决方案1】:

您需要为此使用 BaseAdapter.. 示例链接 link example

请看示例,如果您看不懂,请告诉我

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-10-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多