The use of the Android UI Optimizer tool Hierchyviewer

Source: Internet
Author: User

recently in Learning app performance optimization, first of all the view optimization, want to optimize the code, first of all to know where to optimize. Here's a brief introduction to the use of hierchyviewer.. The first is to connect the device, open the interface to optimize, and then open Eclipse's Window->open perspective->others->hierarchyviewer,

Then select a layout, click on the three-color icon, so you can clearly see the layout of the drawing time, you can also know which layout to optimize. Red represents the place to optimize.

As for how to optimize, I would like to talk about this period of experience:

1, do not use weight as much as possible

2,relativelayout than LinearLayout,

3, multi-use include,merge,viewstub.

4, do not set too many layers of layout.

The use of the Android UI Optimizer tool Hierchyviewer

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.