Address Book like Edit Interface
Can anyone guide me how can I make a form similar to Contact Form given in AddressBook application?
If it is tableview then how can i make a editable tableview?
Thanks
2 Answers
-
It's just a textfield without borders inside the tablerow. You will have to make your own custom rows.
-
Hi!!! i was working with the same need … regards!
var linea = Ti.UI.createTableViewRow({height:35,title:"Nombre"}); var datos = []; var txtCampo = null; txtCampo = Titanium.UI.createTextField ({ color:'#787878', height:31, top:5, left:80, width:200, hintText:'Juan Perez', borderStyle:Titanium.UI.INPUT_BORDERSTYLE_NONE, autocorrect: false, font: {fontFamily: 'Helvetica', fontSize: 14} }); linea.add(txtCampo); linea.selectionStyle = Ti.UI.iPhone.TableViewCellSelectionStyle.NONE; datos[0] = linea; var tablaFormulario = Ti.UI.createTableView({ style:Ti.UI.iPhone.TableViewStyle.GROUPED, data: datos }); tablaFormulario.addEventListener('click',function(e) { alert( e.rowData.title); }); nuevo_usuario.add(tablaFormulario);