Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- win = Ti.UI.currentWindow;
- Titanium.App.Properties.setString("themePak","joker");
- var theme = Titanium.App.Properties.getString("themePak");
- var themeProps= {};
- var themesFile = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, theme + '.json');
- themeProps = JSON.parse(themesFile.read());
- var headerView = Ti.UI.createView(themeProps.header);
- win.add(headerView);
Add Comment
Please, Sign In to add comment