android get position of clicked item in gridview
问题 as we know using android grid view, we can do the following and get notified when item is clicked: gridview.setOnItemClickListener(new AdapterView.OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View v, int position, long id) { Toast.makeText(PopularCapitActivity.this, "" + position, Toast.LENGTH_SHORT).show(); } }); we also know that, if the cell in the grid contains a clickable item, say a button, the above won't get fired. so currently i have a grid view, each cell