Commits

Pedro Brasileiro committed 1d40bbc

Iniciando a tela inicial

  • Participants
  • Parent commits d88744a

Comments (0)

Files changed (2)

 tmp
+build
+build.log

Resources/ui/common/FirstView.js

 //FirstView Component Constructor
 function FirstView() {
 	//create object instance, a parasitic subclass of Observable
-	var self = Ti.UI.createView();
-	
-	//label using localization-ready strings from <app dir>/i18n/en/strings.xml
-	var label = Ti.UI.createLabel({
-		color:'#000000',
-		text:String.format(L('welcome'),'Titanium'),
-		height:'auto',
-		width:'auto'
-	});
-	self.add(label);
-	
-	//Add behavior for UI
-	label.addEventListener('click', function(e) {
-		alert(e.source.text);
+	var self = Ti.UI.createView({
+	    layout : 'vertical'
 	});
 	
+	self.add(Ti.UI.createLabel({
+        color:'#000000',
+        text : 'Benchmark Telas',
+        left : '5dp', 
+        right : '5dp', 
+        top : '5dp', 
+        textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER
+    }));
+    
+    var view1 = Ti.UI.createView({
+       layout : 'horizontal', 
+    });
+    
+    var button1 = Ti.UI.createButton({
+        title : 'Teste 1', 
+        width : '70%'
+    });
+    
+    var infoButton1 = Ti.UI.createButton({
+        title : 'Info', 
+        width : '30%'
+    });
+    
+    view1.add(button1);
+    view1.add(infoButton1);
+    
+    self.add(view1);
+
 	return self;
 }