Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

[fix] blinking when change theme #30

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions MaterialThemeBuilder/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@
<item name="itemTextAppearance">?attr/textAppearanceBody2</item>
</style>

<style name="WindowAnimationTransition">
<item name="android:windowEnterAnimation">@android:anim/fade_in</item>
<item name="android:windowExitAnimation">@android:anim/fade_out</item>
</style>

</resources>
1 change: 1 addition & 0 deletions MaterialThemeBuilder/app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
<style name="Base.Theme.MaterialThemeBuilder" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="android:statusBarColor" tools:ignore="NewApi">?attr/colorSurface</item>
<item name="android:windowLightStatusBar" tools:ignore="NewApi">true</item>
<item name="android:windowAnimationStyle">@style/WindowAnimationTransition</item>
<item name="android:navigationBarColor" tools:ignore="NewApi">?android:attr/colorBackground</item>
<item name="android:windowLightNavigationBar" tools:ignore="NewApi">true</item>
<item name="android:navigationBarDividerColor" tools:ignore="NewApi">?attr/colorControlHighlight</item>
Expand Down