title: Add clickEvent to int array
body: <p>There are three icons. I put icons on integer array. How can I give them click-listener event. <strong>icon0,icon1,icon2 events are different</strong>. I want to give them click event. But I can not do it. How can I give click events to icons separately </p>
  
  <p>and I use wheel.gama jar and This icons are not in the xml. They are at drawable folder</p>
  
  <pre><code>package com.myproject.gama;
  
  import java.util.Arrays;
  
  import com.digitalaria.gama.wheel.Wheel;
  import com.digitalaria.gama.wheel.WheelAdapter;
  import android.app.Activity;
  import android.content.res.Resources;
  import android.graphics.drawable.Drawable;
  import android.os.Bundle;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.*;
  import android.view.View.*;
  import android.widget.AdapterView.OnItemClickListener;
  import android.widget.AdapterView.OnItemSelectedListener;
  import android.widget.ImageView;
  
  import android.util.Log;
  
  public class SampleWheelActivity extends Activity {
  
      private static final String TAG = SampleWheelActivity.class.getSimpleName();
  
      private Wheel wheel;
      public WheelAdapter&lt;Adapter&gt; adapter;
      private Resources res; 
      public int[] icons = { 
           R.drawable.icon1, R.drawable.icon0 , R.drawable.icon2};
      ImageView t;
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          init();
      }
  
      private void init() {
          res = getApplicationContext().getResources();
          wheel = (Wheel) findViewById(R.id.wheel);       
          wheel.setItems(getDrawableFromData(icons));
          wheel.setWheelDiameter(400);
      }
  
      @Override
      public void onResume(){
  
          for (int i = 0; i &lt; icons.length; i++) {
               t= new ImageView(SampleWheelActivity.this);
                  t.setId(i);
                  t.setOnClickListener((OnClickListener) this);
                      super.onResume();
      }
  
  
  
  }
  </code></pre>