You can check code templates in android studio settings (image below).
If its not there you can try restarting the SDK Manager or reinstalling the SDK. You could also try creating just a layout xml file (image below). If neither of those work, create a new file with a .xml extension, then copy and paste the template from https://developer.android.com/develop/ui/views/layout/declaring-layout (make sure the file is in the res/layout folder)