Is there an Android tool to find the name of a layout for a running app?

后端 未结 7 1714
刺人心
刺人心 2021-02-07 03:37

Background

I have been recently hired to maintain a very large program (only two Activities, about a hundred Fragments, and several hundred layouts).

7条回答
  •  Happy的楠姐
    2021-02-07 04:13

    There is also the Developer Assistant app for Android which can inspect a view hierarchy at runtime and then display the most probable layout names visible on the screen. The heuristic is involved so it won't work 100% accurate, but still can be helpful and works completely offline (a disclosure: I made this app).

    An example:

提交回复
热议问题