Hey,
i createt a TableView and added two Sections with 1 Row each:
var sectionTitle = Ti.UI.createTableViewSection({ headerTitle: 'Title' }); sectionTitle.add(Ti.UI.createTableViewRow({title: "title"})); var sectionAmount = Ti.UI.createTableViewSection({ headerTitle: 'Amount' }); sectionAmount.add(Ti.UI.createTableViewRow({title: "amount"})); var billTable = Titanium.UI.createTableView ({ sections: [sectionTitle, sectionAmount], top: 150 });When I start the app it looks like this:
Title title Amount amountI want it to be like:
Title Amount title amounti also tried:
var billTable = Titanium.UI.createTableView ({ data: [sectionTitle, sectionAmount], top: 150 });
Any ideas?
Thanks!
Application type: mobile
Titanium SDK: Titanium Command-Line Interface, CLI version 3.4.0, Titanium SDK version 3.4.0.GA
Platform & version: Android 4.2.2 Device: HTC One X Host Operating System: Windows 8.1 Titanium Studio: Titanium Studio, build: 3.3.0.201407100905