NexusDialog icon indicating copy to clipboard operation
NexusDialog copied to clipboard

theme problem

Open elnazem opened this issue 7 years ago • 0 comments

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);
}

elnazem avatar May 16 '18 11:05 elnazem