Use HierchyViewer and androidui optimization tools for Android UI Optimization

Source: Internet
Author: User

Use HierchyViewer and androidui optimization tools for Android UI Optimization
Recently, I am studying app performance optimization. First, View optimization. To optimize the code, I need to know where optimization is needed. Here is a brief introduction to the use of HierchyViewer. First, connect to the device, Open the interface to be optimized, and then Open the Eclipse Window-> Open Perspective-> others-> hierarchyviewer,

Next, select a layout and click the three-color icon above, so that you can clearly see the layout Painting time, and you can also know which layout to optimize. Red indicates the location to be optimized.

As for how to optimize it, let's talk about the experience of this period of time:

1. Try not to use weight

2. RelativeLayout saves time than LinearLayout

3. Use include, merge, and viewstub.

4. Do not set too many layout layers.

Related Article

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.