title: Trouble calling findViewById
body: <pre><code>for (String s : chunks) {                                                                                     
      String possibleSquare = "s" + s.substring(2, 4);                                                          
      int id = boardContext.getResources().getIdentifier(possibleSquare, "id", boardContext.getPackageName());  
      ImageView backgroundImg = (ImageView) findViewById(id);                                                   
      backgroundImg.setBackgroundColor(Color.rgb(255, 255, 255));                                               
  
  }              
  </code></pre>
  
  <p>The relevant code is above. It's from a method in a class 'Pawn' that is being called by code in another class 'Chessboard'. Now, findViewById is underlined and AndroidStudio is telling me that it 'Cannot resolve method findViewById'. </p>
  
  <p>I figure that this is because the code doesn't know where to search for the View, but I'm not sure how indicate that it should be searching in my 'Board.XML' file.                                                                </p>