Beginner Android, optimize the performance of a layout is a task I received, on-line to check a little hierarchyviewer can do this thing, so began to start.
Hierarchyviewer Use process:
1. Mobile phone needs to be developed version (in the stable version of the response Hierarchyviewer a service does not open)
2. Phone root (not required)
The above two steps can be root wizard to complete, I this device is Xiaomi three, some new models of the root can not
3. tools/Hierarchyviewer in the Android SDK directory is thetool we want to use
4. Open the mobile app
5. Run Hierarchyviewer, as follows
6. Select Blue to indicate that you want to view the activity of the layout, as follows:
7. Represents your layout structure, displays the ID, hierarchy, and also displays the speed at which the control is loaded, as follows:
8. The time required for element measurement, layout, and display (which may be called multiple times in the process), three circular icons, respectively.
The percentage of time spent on the above three steps, green indicates normal, red is very slow, yellow is general (less than 50% control's same property)
The next step is to find the specific slow point, then do the corresponding optimization, the beginner of Android, record.
About the Android Layout debugging tool-hierarchyviewer