Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15298] Android:Support for changing theme at runtime

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.1.1, Release 3.1.2
Fix Version/sn/a
ComponentsAndroid
LabelssupportTeam
ReporterRupesh Sharma
AssigneeUnknown
Created2013-09-20T11:47:33.000+0000
Updated2018-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.

Comments

  1. ILAY SENER 2017-03-23

    Any update on this?

JSON Source