title: Custom ListView item ids
body: <p>i'm trying to make an activity for setting some option of my application, and i would like to use a custom listview with 3 different type of view, this is the code of my custom listview:</p>
  
  <pre><code>public class CustomListAdapter extends ArrayAdapter&lt;String&gt;{
      String[] text;
      Context context;
      CheckBox chkBox;
      public CustomListAdapter(Activity context, String[] text){
          super(context, R.layout.layout_checkbox, text);
          this.text = text;
          this.context = context;
  }
      @Override
      public View getView(int position, View convertView, ViewGroup parent){
          View single_row = null;
          if(position&lt;4){
              LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
              single_row = inflater.inflate(R.layout.layout_checkbox, null, true);
              TextView tv = (TextView)single_row.findViewById(R.id.textView1);
              tv.setText(text[position]);
              chkBox = (CheckBox)single_row.findViewById(R.id.checkBox1);
          }else{
              if(position&lt;6){
                  LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                  single_row = inflater.inflate(R.layout.layout_phone, null, true);
                  TextView tv = (TextView)single_row.findViewById(R.id.textView1);
                  tv.setText(text[position]);
              }
          }
          if(position==6){
              LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
              single_row = inflater.inflate(R.layout.layout_mail, null, true);
              TextView tv = (TextView)single_row.findViewById(R.id.textView1);
              tv.setText(text[position]);
          }
      return single_row;
      }
  }
  </code></pre>
  
  <p>and I use the CustomListAdapter inside an activity:</p>
  
  <pre><code>mList = (ListView)findViewById(R.Id.listView1);
  CustomListAdapter adapter = new CustomListAdapter(this, texts);
  mList.setAdapter(adapter);
  </code></pre>
  
  <p>Now I would like to get the ids of the input widget of the different layout, is there a way to do this ?</p>
  
  <p>Thank You</p>