NexusDialog
NexusDialog copied to clipboard
theme problem
I am using nexusdialog and creating a form in my application, I need to support multiple theme in my application. For this reason I need to check the sharedPreferences for current theme in form before setting the layout in form, how could be possible when the layout is previously set.
@Override
public void onCreate(Bundle savedInstanceState) throws SQLException {
super.onCreate(savedInstanceState);
//chooseTheme is a method that check sharedpreferences for current theme and set the theme
//this method should be before setContentView
chooseTheme(this);
this.setContentView(layout.form_activity);
}