views:

24

answers:

0

I'm trying to use backgroundGradient on a view and it isn't working.

Here is my code:

var sectionHeaderView = Titanium.UI.createView( { top: 20, left: 0, right: 0, backgroundColor: '#355B80', backgroundGradient: { type: 'linear', colors: [{ color: '#d4d4d4', position: 0.0 }, { color: '#c4c4c4', position: 0.50 }, { color: '#b4b4b4', position: 1.0}] }, height: 60 });