title: GridLayout or GridView better to reference static items?
body: <p>I'm building a simple <strong>Whack a Mole</strong> clone and I'm having trouble figuring out how to do my layout.  I haven't played with <code>Android</code> dev since <code>Gingerbread</code> was new, and I've never tried to write a game before, so forgive me if these are newb questions but I've been stuck and Googling for hours now and I'm not getting answers.</p>
  
  <p>I've basically got a <code>3x4</code> <code>GridLayout</code>, with <code>12</code> invisible mole <code>ImageView</code> declared in a <code>layout.xml</code> file, and I'm having trouble figuring out how I can create object references in my code from what I've created in XML so I can make them randomly appear and disappear and handle user touch events.</p>
  
  <p>I'm seeing a lot of info about <code>GridViews</code> and <code>Adapter</code> objects being used to create references from xml and handle touch events, but I'm not sure how to do this using <code>GridLayout</code>.  Should I switch to using a <code>GridView</code> in a <code>LinearLayout</code>, or is there some incredibly simple thing that I'm missing?</p>
  
  <p>Also, would it be better practice to implement the <code>onItemClickedListener()</code> in my <code>Activity</code> subclass or my <code>View</code> subclass?  I'm a little confused about how my <code>View</code> subclass relates to the <code>XML</code> layout.  Maybe I'm just over-complicating this?</p>
  
  <p>Thanks for any help, guys.  Here's my layout.xml if that helps.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:columnCount="3"
  android:rowCount="4"
  android:useDefaultMargins="true"
  android:background="@drawable/grass_bg"
  android:id="@+id/wam_view_layout"&gt;
  &lt;ImageView
      android:id="@+id/mole1"
      android:visibility="invisible"
      android:layout_width="120dip"
      android:layout_height="140dip"
      android:contentDescription="@string/mole_description"
      android:layout_gravity="center"
      android:scaleType="fitCenter"
      android:src="@drawable/mole" /&gt;
  &lt;ImageView
      android:id="@+id/mole2"
      android:visibility="invisible"
      android:layout_width="120dip"
      android:layout_height="140dip"
      android:contentDescription="@string/mole_description"
      android:layout_gravity="center"
      android:scaleType="fitCenter"
      android:src="@drawable/mole" /&gt;
  
  &lt;!--pattern continues until mole12--&gt;
  
  &lt;/GridLayout&gt;
  </code></pre>