I've got a problem with Android Studio version 3.2.1. I do not see in layout editor most of attributes like for example id. I have got this bug probably after Android Studio's update.
I had to delete all android studio files (not just uninstall and except your projects). I didn't try Raynold's solution, so if you have any problem you can try it before deleting all the files.