title: Go through XML and set all TextView to be invisible
body: <p>Hey this is my first time trying anything like so I don't know if this is even close to the best way to do this, but I thought it would work.  I'm trying to go through the XML layout file and set all <code>TextView</code>'s to be INVISIBLE. When the following method is called I get a NullPointerException</p>
  
  <pre><code>    public void numPlayerSetup(){
           {
               for(int i = 3; i &lt;= 6; i++) 
                      for(int z = 2; z &lt;= 10; z++){
                      int resID = getResources().getIdentifier("TextView"+Integer.toString(z) + Integer.toString(i), "id", this.getPackageName());
                      if(resID != 0){
                          TextView text = (TextView) this.findViewById(resID);
                          text.setVisibility(View.INVISIBLE);
                      }
          }
  </code></pre>
  
  <p>Let me know if you have any suggestions. Thanks!</p>