Lable l1 = gridFindControl(controlID) as Label;
grid是你的gridview
controlID是要找的label的id
OnItemLongClickListener clickListener=new OnItemLongClickListener() {
@Override
public boolean onItemLongClick(AdapterView<> arg0, View view,
int position, long arg3) {
//position就是你长按的位置
return false;
}
};
谁知道的,麻烦告知,在线等,notifyDataSetChanged(),在GridView里没有这个函数,只有在ArrayAdapter才能调用,我这里用turnView = (GridView)findViewById(Ridturnview);turnViewsetAdapter(new ImageAdapter(this));怎样才能修改?
以上就是关于怎么样获取GridView中ItemTemplate的Label值很急用,希望大家帮帮忙,,谢啦全部的内容,包括:怎么样获取GridView中ItemTemplate的Label值很急用,希望大家帮帮忙,,谢啦、android 如何获取对某个gridview item长按 *** 作时item的位置、gridView里item的图片怎么改变等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)