title: Why do you need to pass an object of type View to this method?
body: <pre><code>&lt;Button
      android:id="@+id/button1"
      style="?android:attr/buttonStyleSmall"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignLeft="@+id/textView1"
      android:layout_alignParentTop="true"
      android:text="@string/button1" 
      android:onClick="onClickButton"/&gt;
  
  
  public void onClickButton(View view){
  
  
      TextView textview = (TextView) findViewById(R.id.textView1);
  
      textview.setVisibility(View.VISIBLE);
  
  
  }
  </code></pre>
  
  <p>That is the code that makes the text appear in the main activity interface when the button is pressed.  What is the point of passing in an View object when you don't use it in the "onClickButton" method block? I am asking this because the app crashes if I leave out the parameter even when I am not using the view object in the code block.</p>