My workaround for this is to force a dark theme natively in the Android app. In Platforms\Android\MainApplication.cs, insert in the class constructor the line: AppCompatDelegate.DefaultNightMode = AppCompatDelegate.ModeNightYes;
MAUI Page transition animation background color
Igor Popov
1
Reputation point
Hi everyone. I noticed that when navigating between pages in the shell, the transition animation has a background color that matches the system theme. Is it possible to override it somehow? The same problem exists in the bottom tabs when navigating. But the bottom tabs behave the same regardless of which Android system theme is selected. I'm attaching pictures and video to make it clearer what I'm talking about.
Try to watch at 0.25 or 0.5 speed.
Light android theme:
https://youtu.be/xwvUhVdkYNg
Dark android theme:
https://youtu.be/zQcuMXkCodA
1 answer
Sort by: Most helpful
-
Bruce Haley 95 Reputation points
2024-05-05T19:56:19.8833333+00:00