Pop-up windows or ProgressBar and other lag phenomena

Source: Internet
Author: User

It is common for everyone to encounter this situation.

First look at the situation that caused the lag

One is the phone configuration is too low, the memory is seriously insufficient.

The second is that there are too many time consuming actions in your UI thread.

But there is also the case that the phone configuration is also available, and that the UI thread is not doing anything in the same way. That makes us very tangled, right.

I also encountered this situation, very tangled, read a lot of information, finally found the reason; So hurriedly take down the notes.

Android starts with 3.0 (API level 11), supports hardware acceleration when drawing view, takes advantage of GPU features, makes drawing smoother, but consumes more memory. This problem is locked in hardware acceleration, and the solution comes into being: turn off hardware acceleration.

It would be nice to add android:hardwareaccelerated= "false" to this activity.

Pop-up windows or ProgressBar and other lag phenomena

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.