I am developing my application using SwipeBackLayout, and my activity extends from SwipeBackActivity. The background of the background image is transparent when I scroll back to my devices using android api 21. But it does not work on the device with api 19.
Like this:
this is an image in api 19 device

this image is in api 21 device

and below my .xml style in -v19 values:
<style name="AppTheme" parent="AppBaseTheme">
<item name="android:windowIsTranslucent">true</item>
</style>
<style name="AppTheme2" parent="AppBaseTheme">
<item name="android:windowTranslucentStatus">true</item>
</style>
<style name="WelcomeTheme" parent="AppBaseTheme">
<item name="android:windowTranslucentStatus">false</item>
<item name="android:windowFullscreen">true</item>
</style>
and this is my .xml style in values-v21
<style name="AppTheme" parent="AppBaseTheme">
<item name="android:windowIsTranslucent">true</item>
</style>
<style name="AppTheme2" parent="AppBaseTheme">
<item name="android:windowTranslucentStatus">true</item>
</style>
<style name="WelcomeTheme" parent="AppBaseTheme">
<item name="android:windowTranslucentStatus">false</item>
<item name="android:windowFullscreen">true</item>
</style>
in manifest.xml:
<application
android:allowBackup="true"
android:name=".manager.MyApplication"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
.........
</application>
source
share