Android Set window background transparent bug

Source: Internet
Author: User

Today solves a bug, in our product interface quickly click on a control (click to jump to other activity), will be the other app!

The initial idea was to use overridependingtransition, which resulted in the app losing its capture of touch practices during the switchover process, which was not resolved after the results were removed.

There is no particularly good idea, this bug without log is the most difficult to solve! No-stop retries, inadvertently discovered, during activity switching, using an activity that exits animation (zoom)

Behind all is transparent, launcher all show out, although the area is small, but still I found. I just thought maybe the background was set to transparent as a result of the touch event leak, and then open

Values/styles.xml found application used theme, remove <item name= "android: Windowistranslucent" >true</item > This line resolves this bug.

Summary: If you want to make the app's background transparent, you can set the window's background to transparent drawable in activity.

Android Set window background transparent bug

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.