Skip to content

嵌套的GridView的item点击事件无效 #1

@qianggithub

Description

@qianggithub

`hotCity.setOnItemClickListener(new AdapterView.OnItemClickListener() {

            @Override
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
                City bean = (City) parent.getAdapter().getItem(position);
                Toast.makeText(context, bean.getName(), Toast.LENGTH_SHORT).show();
            }
        });`

这个onItemClick无效

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions