title: How to manipulate the contents of a button without using id; Android?
body: <p>I'm new in android world and I have a problem, well, I'm making a project very simple it is about an activity where i have a button and an EditText. The button has an event onClick in XML.
  My problem is it: I need the button value and send this value to
  EditText but my button don't have a id. Help me I don't know how manipulate a element if it dont have a id.</p>
  
  <p>XML Code:</p>
  
  <pre><code> &lt;View 
               android:layout_height="@dimen/cell_height"
               android:background="@color/red"/&gt;
           &lt;Button 
               android:layout_marginLeft="@dimen/button_margin"
               android:layout_gravity="center_vertical"
               android:text="@string/hex_red"
               android:textColor="@color/red"
               android:onClick="copy"/&gt;`
  </code></pre>
  
  <p>Java code:     </p>
  
  <pre><code>public void copy(View boton){
  
      EditText txtSelected = (EditText)this.findViewById(R.id.txtColor)
  
      String color =  boton; &lt;-- here need the button value
  
      txtSelected.setText(color);
  }
  </code></pre>
  
  <p>I need your help, Thanks</p>