'Why Android Studio does not show corresponding layout file in attributes panel of layout inspector?
I am trying to inspect layout for a fragment, and I want to open correct xml file which does contain the selected view.
When I google about it, I found that Android Studio allow us to do that if we are running our application on device > 29.
While I was trying it, I found that for some projects Android Studio does show the correct xml file in which the view is written. But, for other projects it does not show that information.
To clear it more, here are 2 screenshots of the different projects.
Here, Android studio only shows the @id/buttonAddNew for the button. But it does not show the xml file.
But, here Android Studio shows the @id/imageViewNotificationBell along with the home_fragment.xml file name and line number.
So, how can I solve this issue?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


