Answers for "add click listener in grid view"

0

add click listener in grid view

// 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;

        }
    }
});
Posted by: Guest on May-23-2021

Browse Popular Code Answers by Language