windowIsTranslucent和Activtiy切换动画
解决办法
<style name="Animation.Activity.Translucent.Style" parent="@android:style/Animation.Translucent">
<item name="android:windowEnterAnimation">@anim/slide_in_right</item>
<item name="android:windowExitAnimation">@anim/slide_in_right</item>
</style>
<style name="AppTheme" parent="Theme.NoActionBar">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowAnimationStyle">@style/Animation.Activity.Translucent.Style</item>
</style>
本文标题:windowIsTranslucent和Activtiy切换动画
本文链接:https://www.haomeiwen.com/subject/alkyjftx.html
网友评论