Questions tagged [hierarchyviewer]

Hierarchy Viewer is a tool for Android developers to examine their apps' View Hierarchies.

Hierarchy Viewer allows you to debug and optimize your user interface. It provides a visual representation of the layout's View hierarchy (the Layout View) and a magnified inspector of the display (the Pixel Perfect View).

Usage information can be found here.

31 questions
56
votes
2 answers

Does Android Studio have a Hierarchy Viewer or Layout Inspector?

I tried searching on here but couldn't find the answer. I'm looking for a way to launch the Hierarchy Viewer from within Android Studio, rather than having to launch it at the command-line. I've recently migrated to Android Studio from Eclipse, and…
Carl Anderson
  • 3,446
  • 1
  • 25
  • 45
24
votes
4 answers

Can hierarchyviewer be used with a real device other than the Nexus?

I'd really like to use hierarchyviewer with my Samsung Galaxy S. Is there any way to turn it into a developer phone?
Barry Fruitman
  • 12,316
  • 13
  • 72
  • 135
21
votes
7 answers

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

Background I have been recently hired to maintain a very large program (only two Activities, about a hundred Fragments, and several hundred layouts). Furthermore, most of the content of the layouts (images and text) as well as the order that the…
SMBiggs
  • 11,034
  • 6
  • 68
  • 83
13
votes
3 answers

How to add android tools dir to windows 7 path?

I like to quickly start hierarchyviewer. At the moment i use the prompt to go navigate to .... \AppData\local\android\android-sdk\tools\ and then hierarchyviewer I think i need to add something to windows 7 path, but i don't know what to do…
alex
  • 4,804
  • 14
  • 51
  • 86
8
votes
5 answers

Child Views Taking too much time to draw on screen

I have android layout design in which I have an AppBar layout which will contain a Toolbar and one more LinearLayout design with circle Drawable as TextView. which is off same height. So when I try to get the Toolbar or AppBar height/width it's…
HourGlass
  • 1,805
  • 1
  • 15
  • 29
8
votes
1 answer

Measure, Layout, and Draw times in Hierarchyviewer (better) Explained

I am trying to understand the hierarchy view. So I was reading on developer.android.com the meaning of the three dots : Green: For this part of the render time, this View is in the faster 50% of all the View objects in the tree. For example, a…
andrei
  • 2,934
  • 2
  • 23
  • 36
7
votes
0 answers

hierarchy viewer deprecation warning

I had used hierarchy viewer in the past for examining the app UI. On using the tool today I get this warning vihaan@trojan:~/Downloads/adt-bundle-linux-x86-20131030/sdk/tools$ ./hierarchyviewer The standalone version of hieararchyviewer is…
Vihaan Verma
  • 12,815
  • 19
  • 97
  • 126
6
votes
3 answers

Layout a view after resizing

I'm creating a grid that displays values that change very often. Because of this, I'm using a TextView that autoresizes when its content changes (Auto Scale TextView Text to Fit within Bounds). The resize takes place, but the view doesn't layout…
Maragues
  • 37,861
  • 14
  • 95
  • 96
5
votes
3 answers

How to make "Hierarchy Viewer" work in a real device?

I am new to android development I started using "Hierarchy Viewer"...it works fine with emulator that comes up with sdk. The thing is I want to use this on a real device. I have made my research and found because of security reasons it works only on…
Legendary Genius
  • 310
  • 3
  • 20
5
votes
0 answers

How to improve view hierachy and layout performance?

With the tool HierarchyViewer you are able to inspect the layout hierachies of your app. That works fine and I have no problems to analyse my views. I also checked my sourced with Lint. As described in Optimizing Your UI the colors represent the…
bish
  • 3,381
  • 9
  • 48
  • 69
5
votes
2 answers

hierarchyviewer not working

When I run hierarchyviewer I am getting warning SWT folder '/home/sharanu/work/android-ics-source/prebuilt/linux-x86_64/swt/swt.jar' does not exist. Please export ANDROID_SWT to point to the folder containing swt.jar for your platform. then I tried…
Sharanabasu Angadi
  • 4,304
  • 8
  • 43
  • 67
4
votes
3 answers

Hierarchy Viewer is gone

It used to work well.But recently I upgraded my Android Studio to 2.3 and I find the hierarchy viewer disappears.I can't find it both in the sdk/tools directory and the Android Device Monitor.
Allen Vork
  • 1,536
  • 3
  • 16
  • 29
4
votes
2 answers

Hierarchy Viewer "Inspect Screenshot" shows nothing

My AVD screen is: And, when I open the hirarchyviewer from Android/sdk/tools, and click "inspect element", it shows the status bar "Loading pixel perfect data"... ...and them this status bar go away and nothing happens. As if I has just opened…
The Student
  • 27,520
  • 68
  • 161
  • 264
4
votes
0 answers

AlertDialog not visible in Hierarchy Viewer

I have a fragment-based app that I'm trying to analyze using the Hierarchy Viewer. My problem is that the views I need to analyze are not showing up in the Viewer, though they are clearly present in the emulator. I have a FragmentActivity that…
2
votes
0 answers

How to profile view hierarchy in Latest Android studio (i.e. v3.1.1)

I need to check the performance of my layouts (Speed of rendering/loading) and it's child views. I can't find the "Hierarchy Viewer" in the latest android studio also it's alternative i.e. Layout Inspector is there but it doesn't have a profiling…
1
2 3