Slide back the usage of the class library SwipeBackLayout to solve the problem of returning to the black screen, and seeing the desktop, class library swipebacklayout

Source: Internet
Author: User

Slide back the usage of the class library SwipeBackLayout to solve the problem of returning to the black screen, and seeing the desktop, class library swipebacklayout

SwipeBackLayout is a good class library that enables Android to implement a right-sliding return effect similar to that of the iOS system. However, many users may find that they are using the official Demo, A black screen may appear or the UI of the previous Activity may not be displayed only when the desktop background is displayed.

Https://github.com/Issacw0ng/SwipeBackLayout

The solution is as follows:

Do not enable the slide return function on the homepage, and use the topic shown in AppBaseThemeMain on the homepage. Use the AppBaseTheme topic when you need to slide the returned Activity, the attribute set by these two themes is whether to make the window transparent. The Activity on the homepage cannot make the window transparent. You need to set this attribute when you need to slide the returned Activity.

<Style name = "AppBaseTheme" parent = "@ android: style/Theme. holo. light "> <item name =" android: Movie wistranslucent "> true </item> </style>

 

<Style name = "AppBaseThemeMain" parent = "@ android: style/Theme. holo. light "> <item name =" android: Movie wistranslucent "> false </item> </style>

 

 

 

 

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.