GridView中的ItemSelected事件无法触发的疑问 控件gridview 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //让Activity实现OnItemClickListener而不是 OnItemSelectedListener// grid.setOnItemSelectedListener(this); grid.setOnItemClickListener(this); @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { selection.setText(items[position]); } Thanks,但是OnItemSelectedListener又有什么用处呢? 摄像头识别手势移动有没有搞头? Qt for android原理 【求答疑】TableLayout和SurfaceView 下拉框效果 FileDescriptor.sync怎么用? Fragment 嵌套有没有人求解决 android compress慢的问题、求解 android bitmap的点击事件 求助 android 如何使用.so库里文件 安卓7.0关于libdiag.so库的问题 android写在工程里的测试类在应用签名时会被打包吗?(急!急!急) 帮忙看看这个是为什么..
//让Activity实现OnItemClickListener而不是 OnItemSelectedListener
// grid.setOnItemSelectedListener(this);
grid.setOnItemClickListener(this);
@Override
public void onItemClick(AdapterView<?> parent, View view, int position,
long id) {
selection.setText(items[position]);
}