How can I apply the Theme without restarting the whole App? If I do it with startActivity(getIntent()); finish();
the Activity quits and dont restart. Is it possible to simply restart / recreate the Activity to apply the theme?
相关问题
- How can I create this custom Bottom Navigation on
- Illegal to have multiple roots (start tag in epilo
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Creating XML Elements without namespace declaratio
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Get Attribute Value From Simple XML Using JQuery /
It is in the incorrect order.
This is the correct order.
Theme can be set before
super.onCreate(savedInstanceState);
is being called. You need to destroy the activity and create it again and call immediatelysetTheme(THEME);
in onCreate()