Reputation: 480
Is it possible to use Hierarchy Viewer for App Widget? If yes, how? and is there any Tutorial for that?
Upvotes: 3
Views: 2139
Reputation: 41
Now Hierarchy Viewer is deprecated, you should use Layout Inspector. I follow next steps:
I think this steps don't work with real device, because system process doesn't available for debugging
Upvotes: 1
Reputation: 17613
This was the correct answer until Romain Guy developed a workaround.
You can now add the ViewServer
class to your project, and use HierarchyView in any device.
The code needed is available here: https://github.com/romainguy/ViewServer
For more info check this .
Upvotes: 0
Reputation: 879
Have you tried using Hierarchy Viewer for UI elemements? I followed these instructions yesterday and they worked fine for me.
To run Hierarchy Viewer, you can follow these steps:
Since this will not work on a stock Android system you must use either a developer version or an emulator.
Please! check here
Please let me know if these instructions don't work for app widgets or if you have more questions.
Upvotes: 2