title: sending data from one view to another view with a button
body: <p>I have a button that is the last element inside a tablerow, like this:</p>
  
  <pre><code>&lt;TableRow
      android:id="@+id/tableRow1"
      android:layout_height="wrap_content"
      android:layout_width="match_parent"
      android:layout_marginRight="8dp"
      android:layout_marginLeft="8dp"
      android:layout_marginTop="8dp"
      android:layout_marginBottom="8dp"&gt;
  &lt;ImageView
      android:id="@+id/person1_icon"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginRight="4dp"
      android:tag="@drawable/profile_one"
      android:src="@drawable/profile_one"
      /&gt;
      &lt;TableLayout
          android:layout_width="200dp"
          android:layout_height="match_parent"
          android:layout_marginLeft="4dp"
          android:orientation="horizontal"&gt;
          &lt;TableRow android:layout_height="wrap_content"
              android:layout_width="match_parent"
              android:layout_marginRight="2dp"
              android:layout_marginLeft="2dp"
              android:layout_marginTop="2dp"
              android:layout_marginBottom="2dp"&gt;
              &lt;TextView android:id="@+id/person1_seek"
                  android:layout_weight="1"
                  android:layout_width="0dp"
                  android:layout_height="wrap_content"
                  android:text="@string/person1_name"
                  android:hint="@string/person1_name" /&gt;
          &lt;/TableRow&gt;
  
      &lt;/TableLayout&gt;
  
      &lt;Button
          android:id="@+id/addButton1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:onClick="ShowView" /&gt;
  &lt;/TableRow&gt;
  </code></pre>
  
  <p>The code for the button looks like this:</p>
  
  <pre><code>public void ShowView(View view) {
      Intent intent = new Intent(this, DisplaySeekAgain.class);
      startActivity(intent);
  }
  </code></pre>
  
  <p>When the button is pressed, I need to send data from this layout, to the new layout, specifically this data:</p>
  
  <blockquote>
    <p>android:text="@string/person1_name"</p>
  </blockquote>
  
  <p>from one of the TextViews</p>
  
  <p>and this:</p>
  
  <blockquote>
    <p>android:src="@drawable/profile_one"</p>
  </blockquote>
  
  <p>from the ImageView.</p>
  
  <p>I tried using a tag in the button code for the name like this:</p>
  
  <pre><code>   String text_tag = view.getTag().toString();
     intent.putExtra(EXTRA_NAME, text_tag);
  </code></pre>
  
  <p>And that does work, but I can't figure out how to also send the image from the ImageView.</p>
  
  <p>Is there a way to send both?</p>
  
  <p>Thanks!</p>