2013-07-18 43 views
0

有谁知道如何使用Sencha Touch 2.2.1来实现此设计?Sencha Touch 2.2.1具有多个视图的概念设计

我想我需要两个视图;在另一个类中使用渐变和其他视图的基础视图,其中包含所有视图组件,如标签栏标题,图像,文本字段等。

有没有人有更好的主意?是否有可能使用SASS,将$ page-bg-color分配为线性渐变,然后在里面绘制一个白色矩形?

enter image description here

回答

0

你有啥可能够这样直接粘贴到senchafiddle.com。我没有丝毫的CSS专家对这种风格的某些需要仔细看,但总体布局aught为你工作。

Ext.Loader.setConfig({ 
    enabled : true 
}); 

Ext.application({ 
    name : ('SF' || 'SenchaFiddle'), 

    launch : function() { 
     Ext.create('Ext.Container', { 
      fullscreen : true, 
      style : 'background-image: -webkit-linear-gradient(top left, #FFFFFF 0%, #00A3EF 100%);', 
      layout : 'fit', 

      items : [{ 
       xtype : 'titlebar', 
       title : 'Title', 
       docked : 'top' 
      }, { 
       xtype : 'panel', 
       layout : 'fit', 
       margin : '0 40 0 40', 

       items : [{ 
        xtype : 'textfield', 
        label : 'Label 1', 
        docked : 'top' 
       }, { 
        xtype: 'image', 
        src : 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTL66d6uPSYD6skFSjiBAodALYwTvtqipcjBc5RBsLsMd_IoM94Hg', 
        height : '15em', 
        width : '15em', 
        centered : true 
       }] 
      }] 
     }); 
    } 
}); 

祝你好运,布拉德