2014-10-29 55 views
0

我需要設計帶有陰影的窗口背景。所以,我想與背景梯度,但我沒有得到我所期待的,問題與鈦應用漸變顏色的窗口背景

我的代碼,

".questionsContainer":{ 
    height:Ti.UI.FILL, 
    width:Ti.UI.FILL, 
    layout:'vertical', 
    backgroundGradient: { 
      type: "linear", 
      startPoint: { x: "0%", y:"0%"}, 
      endPoint: { x: "0%", y:"100%"}, 
      colors: [ 
       { color: "#3C3C3C", offset: 0.0 },//302E2E 
       { color: "#696969", offset: 1.0 } 
      ] 
     } 
} 

我想這一點, 但我需要申請類似於下面的代碼樣式,

background-image: 
    radial-gradient(
     #C0C0C0, 
     #696969 
    ); 

如何在我的代碼中應用此樣式?

回答