Image[i] = new ImageView(this);
Image[i].setImageResource(R.drawable.book);
Image[i].setPadding(200, 22, 0, 0);
Image[i].setOnClickListener(one);
1.I have a button in array and i set onclicklistener for that button . dont know how to get index of row when click
2.im confused to how to do it?
Set id to Images like ,
view.setId(i);and usinggetId()you can get index…