title: CustomAdapter setText incorrect values
body: <p>The textView.setText sets all the items in the list as the same thing. How do I create a list of all the elements from my ArrayList? Do I need to specify the position somehow?</p>
  
  <pre><code>public class CustomAdapter extends BaseAdapter {
  
       private Context ctx;
       private ArrayList&lt;String&gt; children;
  
       CustomAdapter (ArrayList&lt;String&gt; data, Context context, String log) { 
           this.ctx = context;
           this.children = data;
       }
  
       @Override
       public View getView(int position, View convertView, ViewGroup parent){ 
  
            LayoutInflater inflator = (LayoutInflater)ctx.getSystemService(LAYOUT_INFLATER_SERVICE);
            View v = inflator.inflate(R.layout.text_list, null);
  
            TextView textView = (TextView) v.findViewById(R.id.logText);
            System.out.println("Cyan");
            textView.setTextColor(Color.CYAN);
            System.out.println("LOG SIZE: " + log.size());
  
            for(int i = 0; i &lt; children.size(); i++){
                textView.setText(children.get(i));
            }
            return textView;
       }
  
      @Override
      public int getCount() {
          return children.size();
      }
  
      @Override
      public Object getItem(int position) {
  
          // TODO Auto-generated method stub
          return position;
      }
  
      @Override
      public long getItemId(int position) {
          // TODO Auto-generated method stub
          return position;
      } 
   }
  </code></pre>
  
  <p>}</p>