[TIMOB-28276] Android: ListView/TableView "headerView" may not show when setting height as of 9.3.0
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Unresolved |
| Affected Version/s | Release 9.3.0 |
| Fix Version/s | Release 9.3.0 |
| Components | Android |
| Labels | ListView, TableView, android, header, regression |
| Reporter | Prashant Saini |
| Assignee | Gary Mathews |
| Created | 2020-12-08T14:15:07.000+0000 |
| Updated | 2020-12-10T20:14:13.000+0000 |
Description
Specifying *HeaderView* inside *ListView/TableView* doesn't work on *SDK 9.3.x* in following conditions:
If HeaderView's View height is Ti.UI.SIZE
If HeaderView's View height is Ti.UI.FILL
If HeaderView's View height is in %age or not mentioned at all
However, it works only:If HeaderView's View height is fixed like 100, 200, etc…
In all cases with SDK 9.2.2.GA or lower
*Sample code to reproduce the issue:*
<Alloy>
<Window backgroundColor="white">
<ListView backgroundColor="#ebe1e5">
<ListSection>
<HeaderView>
<View backgroundColor="yellow">
<Label top="20" color="black">Some Label</Label>
<View>
<Button>Some Button</Button>
</View>
</View>
</HeaderView>
</ListSection>
</ListView>
</Window>
</Alloy>
Attachments
| File | Date | Size |
|---|---|---|
| 9.2.2.GA.png | 2020-12-08T14:11:26.000+0000 | 13088 |
| 9.3.x-without any specific height.png | 2020-12-08T14:11:26.000+0000 | 9236 |
| 9.3.x-with specific height.png | 2020-12-08T14:11:26.000+0000 | 12740 |
master: https://github.com/appcelerator/titanium_mobile/pull/12331
merged to master and 9_3_X for 9.3.0 GA target