$btn_update->onTap(update()); $btn_delete = new ButtonBar(); $btn_delete->setCaption("Delete"); $btn_delete->onTap(delete()); $acb->addControl($btn_update); $acb->addControl($btn_delete); $win->addControl($acb); $mainTable = new Table(); $mainTable->setEnableHeaderRowPattern(true); $mainTable->setHeaderRowApplicationBarsClass("applicationBars.transparent"); $mainTable->setRowsStyle("150dip;pd"); $tableImg = new Table(); $tableImg->setClass("table.image"); $tableImg->setRowsStyle("pd;150dip;pd"); $image = new InputImage(); $image->setReadOnly(true); $image->setClass("image.roundBorder"); $name = new InputText(); $name->setReadOnly(true); $name->setClass("input.title"); $address = new InputAddress(); $address->setReadOnly(true); $phone = new InputPhone(); $phone->setReadOnly(true); $tableImg->addControl($image, 2, 1, 1, 1, "Center", "Middle"); $tableImg->addControl($name, 3, 1, 1, 1, "Center", "Middle"); $tableDesc = new Table(); $tableDesc->setClass("table.margin"); $tableDesc->addControl($address, 1, 1); $tableDesc->addControl($phone, 2, 1); $mainTable->addControl($tableImg, 1, 1);