How to find the activity or fragment that is bloating the currently open layout file in Android Studio
I want to find an action containing a button with a specific name in my project. So I open strings.xml
, search bar id, click Find Usage...
and open a layout containing the button I want (for example my_layout_1.xml
).
This begs the question: how can I navigate to Activity
or Fragment
that puffs up my_layout_1.xml
directly from the open file tab in Android Studio? Thanks for the promotion!
When you have a file open .xml
, you should see a small C icon in the upper left corner of the root layout.