About the Android Layout debugging tool-hierarchyviewer

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.