Skip to content

所选择的条目返回数据不对 #5

@zcc2

Description

@zcc2

//ListView的点击事件
sortListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {

        @Override
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {

            String city = ((CitySortModel) adapter.getItem(position - 2)).getName();
            SentDataForResult(city);
        }
    });

position - 1改成position - 2才对 因为添加了两个head

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions