First I put them int array I cannot change it due to other process on my code. How can do this string clickable(onClick event). This icons are not my xml. It is on draw able folder.
public int[] icons = {
R.drawable.icon1, R.drawable.icon0 , R.drawable.icon2};
ImageView t;
Then I convert them String Array
String arrayStr = Arrays.toString (icons);
String[] aa = arrayStr.split(",");
for( int i = 0; i < aa.length ; i++)
{
String element = aa[0];
//How can do this imageView and clickable
ImageView icon1 = (ImageView)element ;
}
Stringclickable? What do you mean?