[TIMOB-15298] Android:Support for changing theme at runtime
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.1.1, Release 3.1.2 |
Fix Version/s | n/a |
Components | Android |
Labels | supportTeam |
Reporter | Rupesh Sharma |
Assignee | Unknown |
Created | 2013-09-20T11:47:33.000+0000 |
Updated | 2018-02-28T20:03:21.000+0000 |
Description
Description
We need to able to change theme at runtime. As in case of native android we have the function setTheme(). If you set this before any view is build it works on Android:
protected void onCreate(Bundle _bundle) {
super.onCreate(_bundle);
// Call setTheme before creation of any View --
setTheme(android.R.style.Theme_Dark);
setContentView(R.layout.main);
}
If I could only change the colors in my theme it will also work.
Any update on this?