Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

theme problem #77

Open
elnazem opened this issue May 16, 2018 · 0 comments
Open

theme problem #77

elnazem opened this issue May 16, 2018 · 0 comments

Comments

@elnazem
Copy link

elnazem commented May 16, 2018

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);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant