When it comes to Theme Changing activity, now my solution is: when i pressed a theme option then recreate the whole activity and setTheme
before super.oncreate()
.So the user will encounter screen splash when switch between themes. How to make it elegantly?
From an App called 'TickTick',it turns out to be very smooth during switch:
Start recent activity without transition may seems a bit better.
public void reload() {
Intent intent = getIntent();
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
finish();
overridePendingTransition(0, 0);
startActivity(intent);
}