This is a simple questions, but I couldn't figure out the answer, so hopefully someone can help. I looked for other questions addressing this, but didn't see any.
I'm familiarizing myself with a bunch of code written by someone else, and I'm trying to get a handle on what is happening. I run across a line like this:
mDeviceList = (ListView)findViewById(R.id.device_list);
How can I find what element in one of the .xml layout files has the id device_list
? I know I can open each file (there are a bunch of them) and click on each element, looking for the id, but is there a faster/simpler way to do this?
EDIT: I see how to do it programatically in other answers. I was looking how to find it within Android Studio. The correct/fast way is by clicking on the id, right-clicking, selecting go-go declaration, which then shows you where the id is declared.