Why does Android Studio click on the R.layout variable to jump to the corresponding layout.xml?

Android Studio Why does clicking the R.layout variable jump to the corresponding layout.xml? Instead of R.java files?

Android Studio can jump directly to the corresponding tag in xml by clicking R.id.xxx in the java code.
I am now using R2.id.xx , so it is a normal variable, so I can only jump to the java file of R2 after clicking. So is there any way for me to jump to the corresponding xml when I use the R2.id.xxx variable?

Mar.21,2021
Menu