title: The constructor TextView() is undefined
body: <p>I made a method to create textviews with certain CSS styles, but I placed the code in a class and it suddenly stopped working. I firstly had "this" since it was in the main class, but now it's in a subclass and "this" doesn't work there, so I removed it and now I get a different error which I have no idea on how to fix.</p>
  
  <pre><code>public class textviewscreate {
  
  public void textviewToevoegen(RelativeLayout relativeLayout) {
      RelativeLayout.LayoutParams relativeLayoutParams;       
      String[] naam = {"Bouw onderdeel", "Kapconstructie","Kapconstructieve bevesiging","Doorbuiging","Vochtinwerking","Dakconstructie","Constructieve bevesiging","Doorbuiging","Vochtinwerking","Waterkerende lagen","Waterdichtheid (folie)laag","Lekwaterafvoerend vermogen","Detaillering aan dakvoet","Thermischeisolatie","Bevestiging","Aansluitdetails","Isolerend vermogen","Dakpannen en vorsten","Conditie dakpannen en vorsten","Breukschade","Vorstschade","Afschilfering","Aangroei algen en mos"};
      TextView[] textView = new TextView[22];
       //1st TextView
      textView[0] = new TextView();   //This gives an error, first was new TextView(this);
  
      relativeLayoutParams = new RelativeLayout.LayoutParams(
              RelativeLayout.LayoutParams.WRAP_CONTENT,
              RelativeLayout.LayoutParams.WRAP_CONTENT);
  
      textView[0].setId(1); // changed id from 0 to 1
      textView[0].setText(naam[0].toUpperCase());
      relativeLayout.addView(textView[0], relativeLayoutParams);
      relativeLayoutParams.setMargins(24, 39, 0, 0);
      // All othet Textviews
      for (int i = 1; i &lt; textView.length; i++) { 
          relativeLayoutParams = new RelativeLayout.LayoutParams(
                  RelativeLayout.LayoutParams.WRAP_CONTENT,
                  RelativeLayout.LayoutParams.WRAP_CONTENT);      
          relativeLayoutParams.addRule(RelativeLayout.BELOW,
                      textView[i-1].getId());
              relativeLayoutParams.addRule(RelativeLayout.ALIGN_LEFT,
                  textView[i-1].getId()); // added top alignment rule
  
           textView[i] = new TextView(); //Also an error firstly new TextView(this);
              textView[i].setText(naam[i]);
              textView[i].setId(i+1);
              relativeLayout.addView(textView[i], relativeLayoutParams);
      }
  }
  </code></pre>
  
  <p>}</p>