📌  相关文章
📜  在网格视图中添加点击侦听器 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:49.651000             🧑  作者: Mango

代码示例1
// Implement On Item click listener
gridView1.setOnItemClickListener(new OnItemClickListener() {
    @Override
    public void onItemClick(AdapterView parent, View view, int position, long id) {

        switch (position) {
            case 0: 
                break;
            case 1:
                break;

        }
    }
});