Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28276] Android: ListView/TableView "headerView" may not show when setting height as of 9.3.0

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionUnresolved
Affected Version/sRelease 9.3.0
Fix Version/sRelease 9.3.0
ComponentsAndroid
LabelsListView, TableView, android, header, regression
ReporterPrashant Saini
AssigneeGary Mathews
Created2020-12-08T14:15:07.000+0000
Updated2020-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

FileDateSize
9.2.2.GA.png2020-12-08T14:11:26.000+000013088
9.3.x-without any specific height.png2020-12-08T14:11:26.000+00009236
9.3.x-with specific height.png2020-12-08T14:11:26.000+000012740

Comments

  1. Gary Mathews 2020-12-10

    master: https://github.com/appcelerator/titanium_mobile/pull/12331
  2. Christopher Williams 2020-12-10

    merged to master and 9_3_X for 9.3.0 GA target

JSON Source