Issue
I'm trying to achieve the similar experience as Chrome F12 in Android App Debugging, i.e., get the resource ids of certain objects, even merrier, see their styles and event handlers,
Just tried this one: href="https://stackoverflow.com/questions/27668834/inspect-element-in-android-studio">Inspect Element in Android Studio
But it didn't work, because I don't have enough rep points I cannot comment on that answer, so I have to post my question here:
- Is it possible to inspect element in Android Studio?
- What's that answer is about? Is it possible to do it in PC?
Solution
I think the question you linked is about inspection code elements, not view elements.
You can inspect the view hierarchy using the Android Device Monitor. Just select Hierarchy View from the perspectives. Source: http://developer.android.com/tools/help/hierarchy-viewer.html
As of Android Studio 3.1 or later, Hierarchy Viewer is deprecated. You should instead use Layout Inspector to inspect your app's view hierarchy at runtime. View -> Tool Windows -> Layout Inspector.
Answered By - F43nd1r
Answer Checked By - Robin (JavaFixing Admin)