Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Alloy.CFG not working on android tss

$
0
0

I have defined a theme color in config.json and used it in tss as follows:

config.json
{
  "global": {
    "ThemeColor":"#00A74C"
  },
  "env:development": {},
  "env:test": {},
  "env:production": {},
  "os:android": {},
  "os:blackberry": {},
  "os:ios": {},
  "os:mobileweb": {},
  "dependencies": {
  }
}
 
app.tss
".headerLbl":{
    color:Alloy.CFG.ThemeColor
}
 
view
<Label id="headername" text="sample" class="headerLbl"></Label>
This works perfect on iOS but android do not take the ThemeColor

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>