Android - How to switch theme with a transition at runtime
<p>I know that you need to restart the activity to apply a new theme, so maybe the way this is done is with a different approach.</p>

<p>This is what I will like to accomplish, as you can see the app it's not restarted and there's a transition between the ligth and dark theme.</p>

<p><a href="https://i.stack.imgur.com/7hqW7.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7hqW7.gif" alt="Example"></a></p>