Sunday, 15 February 2015

Android How can I change image on gridview by position? -



Android How can I change image on gridview by position? -

i have slide puzzle game.

i want alter image on gridview position(id).

how that?

try this

gridview.setonitemclicklistener(new onitemclicklistener() { @override public void onitemclick(adapterview<?> arg0, view arg1, int position, long arg3) { // can position of item or imageview , 1 time again can set new image // setbackground() getting position } });

android gridview android-imageview puzzle

No comments:

Post a Comment