I have an ArrayList of Buttons where my OCL needs to know which index I has been pressed. The plan is something like this:
MyOnClickListener onClickListener
View.OnClickListener myListener = new View.OnClickListener() { @Override public void onClick(View v) { Log.d("Button",v.getText().tostring); } });
you will get your button value in view so, you will find it which index is.