title: Use buttons in game-style scenario
body: <p>I have a 5 linear layouts, each containing 10 buttons, which gives rise to a 5 by 10 array of buttons. I would like the user to select 5 buttons, and each button contains a certain point value. On the next page, I would like the sum of the point values of these 5 buttons to appear in a textview.</p>
  
  <p>Here is what I have tried so far, using a small sample of my code.</p>
  
  <p><strong>On the xml file:</strong> (this is a 2 by 3 sample)</p>
  
  <pre><code>&lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="horizontal"&gt;
  
      &lt;Button
          android:id="@+id/button11"
          android:layout_width="0dip"
          android:layout_weight="1"
          android:layout_height="wrap_content"
          android:text="50" /&gt;
  
      &lt;Button
          android:id="@+id/button12"
          android:layout_width="0dip"
          android:layout_weight="1"
          android:layout_height="wrap_content"
          android:text="50" /&gt;
  
      &lt;Button
          android:id="@+id/button13"
          android:layout_width="0dip"
          android:layout_weight="1"
          android:layout_height="wrap_content"
          android:text="75" /&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="horizontal"&gt;
  
      &lt;Button
          android:id="@+id/button21"
          android:layout_width="0dip"
          android:layout_weight="1"
          android:layout_height="wrap_content"
          android:text="00" /&gt;
  
      &lt;Button
          android:id="@+id/button22"
          android:layout_width="0dip"
          android:layout_weight="1"
          android:layout_height="wrap_content"
          android:text="25" /&gt;
  
      &lt;Button
          android:id="@+id/button23"
          android:layout_width="0dip"
          android:layout_weight="1"
          android:layout_height="wrap_content"
          android:text="75" /&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I am not sure what to do on the java file, but I was considering giving each <code>button id</code> a value (which is currently represented by the name of the button) and adding up all the values, which will then be displayed on the next page.</p>