Skip to content

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

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无效

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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