title: show each value from arraylist to each textView Android
body: <p>I'm trying to show each value in my arraylist to each textView which I created manually or fixed textView</p>
  
  <pre><code>    totalCardPerPage = 30;
      cardNumber = 1;
      //looping to determine textView id in my xml
      for(int x=1;x&lt;=totalCardPerPage;x++){
          //textView id
          textId = "text"+cardNumber;
          int id = getResources().getIdentifier(textId, "id", "com.example.radioexample");
          TextView currcell = (TextView) findViewById(id);
          //get array size
          int arrayListSize = arrayListPage1.size();
  
          //looping to show each value in textView
          for(int y=0; y&lt;=arrayListSize; y++){
              currcell.setText(arrayListPage1.get(y).toString);
              currcell.setBackgroundColor(Color.RED);
          }
          cardNumber++;
      }
  </code></pre>
  
  <p>the problem is the looping to show each value in textView. </p>
  
  <p>I got an error when run this code</p>
  
  <p>I realized it for the looping in arraylist, all the value from my array get together in one textView only</p>
  
  <p>it should be if there is 5 value in my array, each value will be shown in each textView. </p>
  
  <p>For example,</p>
  
  <pre><code> arraylist {a,b,c,d,e};
   text1.setText(a);
   text2.setText(b);
   text3.setText(c);
   text4.setText(d);
   text5.setText(e);
  </code></pre>
  
  <p>anyone know how to do it?</p>
  
  <p>thanks</p>