Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1341] "Auto" TableViewRow not working in Android 6

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2015-11-23T07:21:24.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsheight, tableViewRow
ReporterAce McLoud
AssigneeShak Hossain
Created2015-11-04T09:54:42.000+0000
Updated2016-03-08T07:37:45.000+0000

Description

Dynamic height of TableViewRow doesn't work in Android 6:
<Alloy>
	<Window class="container">
		<TableView height="Ti.UI.SIZE" layout="vertical">
			<TableViewRow height="Ti.UI.SIZE">
<Label height="Ti.UI.SIZE">
Label1
Label1
Label1
</Label>
			</TableViewRow>
			<TableViewRow height="Ti.UI.SIZE">
<Label text="Label2" height="Ti.UI.SIZE" />
			</TableViewRow>
			<TableViewRow height="Ti.UI.SIZE">
<Label text="Label3" height="Ti.UI.SIZE" />
			</TableViewRow>
		</TableView>
	</Window>
</Alloy>
See attached Screenshots for expected Layout as in Android 5 + wrong layout in Android 6. In Android 6 the TableViewRow takes up the entire height of the screen.

Attachments

FileDateSize
Screen Shot 2015-10-30 at 10.44.04.png2015-11-04T09:52:59.000+000079911
Screen Shot 2015-11-04 at 10.48.23.png2015-11-04T09:53:03.000+000063641

Comments

  1. carlo 2015-11-05

    I have the same problem, but I'm pretty sure that same code, same titnium sdk changes behaviour in last two week because I build the same app on the same device and table row changes (buggy version is in the store: https://play.google.com/store/apps/details?id=it.tnx.vtf). I don't know how to check android sdk used during runs but I try to create a dist build forcing an old version and no luck. Could be a CLI problem??? Is the same component I've recently update. I can upload both apk if can help.
  2. Ace McLoud 2015-11-09

  3. carlo 2015-11-09

    further information added on TIMOB-19855

JSON Source