<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowAnimationStyle">@style/ActivityAnimation</item>
</style>
<style name="ActivityAnimation" parent="@android:style/Animation.Activity">
<item name="android:activityOpenEnterAnimation">@anim/activity_in</item>
<item name="android:activityOpenExitAnimation">@anim/activity_out</item>
<item name="android:activityCloseEnterAnimation">@anim/activity_back_in</item>
<item name="android:activityCloseExitAnimation">@anim/activity_back_out</item>
</style>
</resources>
Forked from lassana/"windowIsTranslucent" is false.md
Created
November 22, 2016 07:07
-
-
Save backviet/cf2c2a6e94d3f7feaae7a2b0136d41fb to your computer and use it in GitHub Desktop.
<resources>
<style name="AppThemeTranslucent" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowAnimationStyle">@style/ActivityAnimation.Translucent</item>
</style>
<style name="ActivityAnimation.Translucent" parent="@android:style/Animation.Translucent">
<item name="android:windowEnterAnimation">@anim/activity_in</item>
<item name="android:windowExitAnimation">@anim/activity_back_out</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/>
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light"/>
</resources>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <scale | |
| android:fromXScale="0.84" | |
| android:toXScale="1.0" | |
| android:fromYScale="0.84" | |
| android:toYScale="1.0" | |
| android:duration="@integer/activityAnimationTime"/> | |
| <translate | |
| android:fromYDelta="8%" | |
| android:fromXDelta="16%" | |
| android:toYDelta="0%" | |
| android:toXDelta="0%" | |
| android:duration="@integer/activityAnimationTime"/> | |
| <alpha | |
| android:fromAlpha="0.25" | |
| android:toAlpha="1.0" | |
| android:duration="@integer/activityAnimationTime"/> | |
| </set> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <translate | |
| android:fromXDelta="0%p" | |
| android:toXDelta="100%p" | |
| android:duration="@integer/activityAnimationTime"> | |
| </translate> | |
| </set> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <translate | |
| android:fromXDelta="100%p" | |
| android:toXDelta="0%p" | |
| android:duration="@integer/activityAnimationTime"> | |
| </translate> | |
| </set> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <scale | |
| android:fromXScale="1.0" | |
| android:toXScale="0.84" | |
| android:fromYScale="1.0" | |
| android:toYScale="0.84" | |
| android:duration="@integer/activityAnimationTime"/> | |
| <translate | |
| android:fromYDelta="0%" | |
| android:fromXDelta="0%" | |
| android:toYDelta="8%" | |
| android:toXDelta="16%" | |
| android:duration="@integer/activityAnimationTime"/> | |
| <alpha | |
| android:fromAlpha="1.0" | |
| android:toAlpha="0.25" | |
| android:duration="@integer/activityAnimationTime"/> | |
| </set> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


