title: android studio doesn't recognize errors in XML file
body: <p><img src="https://i.stack.imgur.com/CgQyX.png" alt="My style with XML File" /></p>
  <p>Here I added the onCreate attribute to my textView.
  When I was using it before updating android studio realized that there is no event in the .java file and started to show suggestions including creating this event.</p>
  <p>In the updated version it doesn't recognize that there is an error.</p>
  <p>Java file:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>package com.example.via;
  
  import androidx.appcompat.app.AppCompatActivity;
  
  import android.os.Bundle;
  
  public class LoginActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_login);
      }
  }</code></pre>
  </div>
  </div>
  </p>
  <p>XML File:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".LoginActivity"
      tools:layout_editor_absoluteX="0dp"
      tools:layout_editor_absoluteY="-69dp"&gt;
  
      &lt;ImageView
          android:id="@+id/imageView"
          android:layout_width="120dp"
          android:layout_height="87dp"
          android:layout_marginTop="78dp"
          android:layout_marginBottom="43dp"
          app:layout_constraintBottom_toTopOf="@+id/editTextTextEmailAddress"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent"
          app:srcCompat="@drawable/logo" /&gt;
  
      &lt;EditText
  
          android:id="@+id/editTextTextEmailAddress"
          android:layout_width="0dp"
          android:layout_height="0dp"
          android:layout_margin="10dp"
          android:layout_marginStart="9dp"
          android:layout_marginLeft="9dp"
          android:layout_marginEnd="9dp"
          android:layout_marginRight="9dp"
          android:layout_marginBottom="41dp"
          android:background="@drawable/rounded_edit_text"
          android:drawableLeft="@drawable/emailll"
          android:drawablePadding="10dp"
          android:ems="10"
          android:hint="E-mail"
          android:inputType="textEmailAddress"
          android:paddingLeft="20dp"
          app:layout_constraintBottom_toTopOf="@+id/editTextTextPassword"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/imageView" /&gt;
  
      &lt;EditText
          android:id="@+id/editTextTextPassword"
          android:layout_width="0dp"
          android:layout_height="0dp"
          android:layout_margin="10dp"
          android:layout_marginStart="9dp"
          android:layout_marginLeft="9dp"
          android:layout_marginEnd="9dp"
          android:layout_marginRight="9dp"
          android:layout_marginBottom="27dp"
          android:background="@drawable/rounded_edit_text"
          android:drawableLeft="@drawable/password"
          android:drawablePadding="10dp"
          android:hint="Password"
          android:inputType="textPassword"
          android:paddingLeft="20dp"
          app:layout_constraintBottom_toTopOf="@+id/button"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/editTextTextEmailAddress" /&gt;
  
      &lt;Button
          android:id="@+id/button"
          android:layout_width="0dp"
          android:layout_height="0dp"
          android:layout_margin="10dp"
          android:layout_marginStart="9dp"
          android:layout_marginLeft="9dp"
          android:layout_marginEnd="9dp"
          android:layout_marginRight="9dp"
          android:layout_marginBottom="7dp"
          android:background="@drawable/rounded_button"
          android:text="Login"
          android:textAllCaps="false"
          android:textColor="#000"
          android:textSize="25sp"
          android:textStyle="bold"
          app:layout_constraintBottom_toTopOf="@+id/checkBox"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/editTextTextPassword" /&gt;
  
      &lt;CheckBox
          android:id="@+id/checkBox"
          android:layout_width="293dp"
          android:layout_height="49dp"
          android:layout_marginStart="4dp"
          android:layout_marginLeft="4dp"
          android:layout_marginBottom="18dp"
          android:text="Stay signed in"
          android:textSize="18sp"
          android:textStyle="bold"
          app:layout_constraintBottom_toTopOf="@+id/button2"
          app:layout_constraintStart_toStartOf="@+id/button"
          app:layout_constraintTop_toBottomOf="@+id/button" /&gt;
  
      &lt;Button
          android:id="@+id/button2"
          android:layout_width="0dp"
          android:layout_height="0dp"
          android:layout_margin="10dp"
          android:layout_marginStart="9dp"
          android:layout_marginLeft="9dp"
          android:layout_marginEnd="9dp"
          android:layout_marginRight="9dp"
          android:layout_marginBottom="20dp"
          android:background="@drawable/rounded_google_button"
          android:drawableLeft="@drawable/google_logo"
          android:drawablePadding="10dp"
  
          android:paddingLeft="15dp"
          android:text="Sign in with Google"
          android:textAllCaps="false"
          android:textColor="#000"
          android:textSize="25sp"
          android:textStyle="bold"
          app:layout_constraintBottom_toTopOf="@+id/textView2"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/checkBox" /&gt;
  
      &lt;TextView
          android:id="@+id/textView2"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginBottom="91dp"
          android:gravity="center"
          android:minHeight="48dp"
          android:onClick="signUp"
          android:text="Create New Account ?"
          android:textColor="#102AB5"
          android:textSize="25sp"
          android:textStyle="bold"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintHorizontal_bias="0.0"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/button2" /&gt;
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;</code></pre>
  </div>
  </div>
  </p>