Two view interaction, bitmap when drawing overlap

Source: Internet
Author: User

From a design standpoint, you should try to avoid overlapping views.

During a dynamic development of a new project, two views overlap during the dynamic process, and the bitmap of the two views are displayed in real time, so there is an unexpected ghosting problem. Slows down the animation and finds that the bitmap part of the upper view shows the underlying view in a transparent manner before ghosting occurs. Check the bitmap pixels and discover that the alpha channel does not exist, that is, bitmap is not transparent, and why it appears when it is drawn, for reasons not yet found.

Android provides a porterduff.mode flag for overlapping areas to set up a specific drawing of overlapping areas, thus resolving ghosting issues through this flag.

Android Color Rendering (ix) Porterduff and Xfermode detailed

Two view interaction, bitmap when drawing overlap

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.