Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

TableViewSections are shwon as Rows

$
0
0

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
amount
I want it to be like:
Title   Amount
title   amount
i 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


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>