Android Studio not Showing Layout Preview
Design preview not showing in Android Studio 4.2.1
There are not much complex factor that causing, just simple is that its all because of using an empty attribute in XML file. If you are using EditText, you must be aware of AutoFill attribute.
If you leave EditText without an AutoFill attribute it sounds not good.
There are two attribute android:autofillHints & android:importantForAutofill
If you are using empty android:autofillHints=”” then android studio layout design preview cause error and won’t be able to work properly.
If you still want to use it empty then must be replace it with android:importantForAutofill=”no” .
This issue is verified because victim know better than other.
Hope so Android Studio Layout Design Preview work properly.
Thanks