title: Why Android Studio does not show corresponding layout file in attributes panel of layout inspector?
body: <p>I am trying to inspect layout for a fragment, and I want to open correct xml file which does contain the selected view.</p>
  <p>When I google about it, I found that Android Studio allow us to do that if we are running our application on device &gt; 29.</p>
  <p>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.</p>
  <hr />
  <p>To clear it more, here are 2 screenshots of the different projects.</p>
  <p><a href="https://i.stack.imgur.com/YNkvJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YNkvJ.png" alt="enter image description here" /></a></p>
  <p>Here, Android studio only shows the <code>@id/buttonAddNew</code> for the button. But it does not show the xml file.</p>
  <hr />
  <p><a href="https://i.stack.imgur.com/ClUKb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ClUKb.png" alt="enter image description here" /></a></p>
  <p>But, here Android Studio shows the <code>@id/imageViewNotificationBell</code> along with the <code>home_fragment.xml</code> file name and line number.</p>
  <hr />
  <p>So, how can I solve this issue?</p>