Hello,
Welcome to our Microsoft Q&A platform!
The dark theme should be applied without the app restart.
To respond to theme changes on Android, please make sure you've included the ConfigChanges.UiMode flag in the Activity attribute of your MainActivity class as below.
[Activity(Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = =ConfigChanges.UiMode ...)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
...
}
For more details, you could refer to this doc: https://developer.android.com/guide/topics/resources/runtime-changes
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.