Skip to content

theme problem #77

Description

@elnazem

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions