title: My Button is not responding in android studio
body: <p>When i run the app. The buttons refuse to respond. I set a Toast and a logcat to check for response. but non. please help resolve</p>
  
  <p>this is my source code</p>
  
  <pre><code>&lt;TextView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Hello World!"
      android:id="@+id/textView" /&gt;
  
  &lt;Button
      android:text="Button"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_below="@+id/textView"
      android:layout_centerHorizontal="true"
      android:layout_marginTop="14dp"
      android:id="@+id/button"
      tools:onClick="topClick" /&gt;
  
  &lt;Button
      android:text="Button"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_below="@+id/button"
      android:layout_centerHorizontal="true"
      android:layout_marginTop="14dp"
      android:id="@+id/button2"
      tools:onClick="bottomClick" /&gt;
  </code></pre>
  
  <p>and for my java methods;</p>
  
  <pre><code>public class MyActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.my_layout);
  
          //Testing the Toast and Log in action
          Toast.makeText(this, "Can you see me?", Toast.LENGTH_SHORT).show();
  
          Log.i("info", "Done creating the app");
      }
  
  
      //creating method topclick
      public void topClick(View v) {
          Toast.makeText(this, "Top button clicked", Toast.LENGTH_SHORT).show();
  
          Log.i("info", "The user clicked the top button");
      }
  
      //creating method bottomclick
      public void bottomClick(View v) {
          Toast.makeText(this, "Bottom button clicked", Toast.LENGTH_SHORT).show();
  
          Log.i("info", "the user clicked the bottom button");
      }
  
  }
  </code></pre>