This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Placed in /lib/functions.js | |
var getData = function(callback){ | |
var rssFeed = Ti.Network.createHTTPClient(); | |
rssFeed.onload = function(){ | |
var xml = this.responseXML; | |
var items = xml.documentElement.getElementsByTagName("item"); | |
var _title = ""; | |
var tableData = []; | |
var row = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//import builtin alloy animations | |
var animation = require('alloy/animation'); | |
var wordString = "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program"; | |
var wordArray = wordString.split(" "); | |
var lblArray = []; | |
var lbl = null; | |
//Generate Label element for each word |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. I had some issues with flickering, changing the event to "onscrollend" | |
// 2. My design requires not just opacity changes but different design for active / inactive buttons so modified for this accordingly | |
// Configuration | |
var disabledBackground = "#fff"; | |
var disabledBorder = "#5b5857"; | |
var enabledBackground = "#e5001b"; | |
var enabledBorder = "#cccccc"; | |