have multiple scroll view as

You must Login before you can answer or comment on any questions.

// COMIENZO DEL CODIGO
 
var win1 = Titanium.UI.createWindow({
        //url:'view2.js',
        title:'ParqueRecuerdo',
        backgroundColor:'#fff' , // color blanco
        //layout: 'vertical'
    });
 
var CodigoNicho = Titanium.UI.createLabel({
    color:'#fff',
    text:'Código Nicho',
    top:2,
    left:3,
    backgroundColor: '#006400',
    //borderRadius:0,
    //width:10,
    //height:'auto',
    //height: 10,
    //height:'auto',
    font:{
        fontSize: 15    
    }
});
 
var NombreNicho = Titanium.UI.createLabel({
    color:'#fff',
    text:'Nombre del Nicho',
    top:40,
    left:3,
    //width:10,
    //height: 10,
    //width:300,
    //height: 100,
    //height:'auto',
    font:{ fontSize: 15
        //fontSize: 24  
    }
});
 
 
var Cuerpos = Titanium.UI.createLabel({
    color:'#fff',
    text:'Cuerpos:',
    //height:'auto',
    top:80,
    left:3,
    //width:10,
    //height: 10,
    //width:'auto',
    //textAlign:'center',
    //height:'auto',
    font:{
        fontSize: 15
    }
});
 
var Cuerpos0 = Titanium.UI.createLabel({
    color:'#fff',
    text:'0',
    //height:'auto',
    top:80,
    right:10,
    //width:10,
    //height: 10,
    //width:'auto',
    //textAlign:'center',
    //height:'auto',
    font:{
        fontSize: 15
    }
});
 
var Restos = Titanium.UI.createLabel({
    color:'#fff',
    text:'Restos:',
    //height:'auto',
    top:120,
    left:3,
    //width:10,
    //width:'auto',
    //textAlign:'center',
    //height: 10,
    //height:'auto',
    font:{
        fontSize: 15
    }
});
 
var Restos0 = Titanium.UI.createLabel({
    color:'#fff',
    text:'0',
    //height:'auto',
    top:120,
    right:10,
    //width:10,
    //width:'auto',
    //textAlign:'center',
    //height: 10,
    //height:'auto',
    font:{
        fontSize: 15
    }
});
 
var View1 = Titanium.UI.createView({
    //bottom:275,
    backgroundColor: '#228B22',
    height:150,
    width:320,
    //borderRadius:1,
    top: 0
});
 
var View2 = Titanium.UI.createView({
    //bottom:275,
    backgroundColor: '#006400',
    height:37,
    width:320,
    //borderRadius:1,
    top: 0
 
});
 
//for (var i = 0; i < View1.length; i++) {
 
 
 
 
//var tableData = [ {title: 'CodigoNichos'}, {title: 'NombreNicho'}, {title: 'Cuerpos:'}, {title: 'Restos:0'} ];   
//var table = Ti.UI.createTableView({
    //backgroundColor: ' #557E29',
    //top: 5,
    //width: 200,
    //height: 197,
    //left:125,
    //data: tableData
//});
 
 
 
 
win1.add(View1);
View1.add(View2);
View2.add(CodigoNicho);
View1.add(NombreNicho);
View1.add(Cuerpos);
View1.add(Cuerpos0);
View1.add(Restos);
View1.add(Restos0);
 
//for(var p in View1) {
    //win1.add(View1[p]);
//}
//for(var p in View1) {
    //win1.add(View1[p]);
//}
//}
 
win1.open();
 
 
// FIN DEL CODIGO

— asked 9 months ago by juan perez
1 Comment
  • how to make a multiple view windows aparescan to move on the screen, and all are the same size as the view are equal, I think it makes a for e tasted but rather I get and I have no basis declared.

    — commented 9 months ago by juan perez

1 Answer

I think you translated from spanish with google, right? Try to put the question in both languages, maybe somebody will understand what you need.

Creo que has usado google para traducir la pregunta de español, verdad? Intenta ponerla en los dos idiomas, tal vez alguien the pueda ayudar.

Your Answer

Think you can help? Login to answer this question!