title: Change Related XML File Android Studio Java Class
body: <p>I'm new to Android development, and I'm having an issue where my <code>RegistrationActivity</code> Class is essentially pointing to the wrong XML file. </p>
  
  <p>This is the error in logcat:</p>
  
  <blockquote>
    <p>Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference at arufolo.myapp.RegistrationActivity.onCreate(RegistrationActivity.java:45)</p>
  </blockquote>
  
  <p>I found that the error is caused by the following:</p>
  
  <p>When I go to my Registration class and click the little XML icon next to the class name, it shows that the related XML file is the <code>login.xml</code> (My Login Screen)... Instead, I want this to show <code>registration.xml</code>. How do I do this?</p>