Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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

— asked September 9th 2010 by Adnan Ahmad
  • 1.4
  • iphone
  • tableview
0 Comments

2 Answers

  • It's just a textfield without borders inside the tablerow. You will have to make your own custom rows.

    — answered September 9th 2010 by Dan Tamas
    permalink
    1 Comment
    • Did you ever figure this out. I am looking for the same edit interface (with green buttons and animated edit screens)

      — commented April 27th 2011 by Stephen Raja
  • 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);
    
    — answered December 26th 2011 by Juanito Perez
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.