cara mengubah tema aplikasi di studio android secara terprogram
So, to switch between themes dynamically you simply need to call
setTheme before super.onCreate like this:
public void onCreate(Bundle savedInstanceState) {
setTheme(android.R.style.Theme);
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_second);
}
android developer