O
O
OlgaComrade2020-03-22 19:42:18
Android
OlgaComrade, 2020-03-22 19:42:18

How to find the view ID in the layoutInspector (if mID=NO_ID) so that you can refer to it using R.*?

I'm trying in the telegram project (android version) to understand how to find this or that element in the activity.
Advised to use layoutInspector for these purposes. But the identifier contains the NO_ID value. (See screenshot)
It is important to understand the principle itself.

I tried logically to find its name in R.* using the menu button as an example, but in vain, there is nothing similar.
How, in the end, in the context of the telegram project, can I find the identifier of the desired view in a specific activity?
5e77955543de4486907866.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2020-03-22
@zagayevskiy

As far as I know, telegram does not use xml markup. They create the whole ui from code.
Therefore, they do not need IDs at all, and accordingly, you will not find anything in the R-file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question