Example of centered text in ui.TableView:
import ui
class Data (ui.ListDataSource):
def __init__(self, items=None):
ui.ListDataSource.__init__(self, items)
def tableview_cell_for_row(self, tableview, section, row):
cell = ui.TableViewCell()
cell.text_label.text = str(self.items[row])
cell.text_label.alignment = ui.ALIGN_CENTER
return cell
v = ui.TableView()
v.frame = (0, 0, 512, 512)
v.data_source = Data('abcde')
v.delegate = v.data_source
v.present('sheet')