title: How to tag Button to ViewHolder created in custom adapter
body: <p>i am using custom adapter with each row having number of buttons created using,</p>
  
  <pre><code>@Override
  public View getView(int position, View convertView, ViewGroup parent) {
  LayoutInflater inflater = (LayoutInflater) context
              .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  View rowview = (HorizontalScrollView) inflater.inflate(
              R.layout.hrowlayout, parent, false);
  LinearLayout ll1 = (LinearLayout) rowview.findViewById(R.id.ll);    
  Button[] b = new Button[M];     
      for (int i = 0; i &lt; M; i++) {
          b[i] = new Button(ll1.getContext());
          b[i].setText(....);
          LinearLayout.LayoutParams params2 = new LinearLayout.LayoutParams( x, 90);
          b[i].setLayoutParams(param2);
          ll1.addView(b[i],params2);
          }
   return rowview;   
  }
  </code></pre>
  
  <p>My question is how to use ViewHolder on this adapter and how to tag the buttons which are not in XML file .. i.e on </p>
  
  <pre><code>b[i] = new Button[M];
  </code></pre>