[TIMOB-19432] Android: View that scrolls (ScrollView, ListView etc) in ListView header does not scroll
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2017-07-25T17:35:38.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android, iOS |
Labels | android |
Reporter | Be Rushton |
Assignee | Eric Merriman |
Created | 2015-03-19T05:09:54.000+0000 |
Updated | 2017-07-25T17:35:38.000+0000 |
Description
The below code works fine on iOS and you can scroll within the ListView in the HeaderView. On Android it will not scroll.
<Alloy>
<Window class="container">
<ListView id="searchTable" defaultItemTemplate="searchResult">
<HeaderView backgroundColor="#eee" layout="vertical">
<ListView defaultItemTemplate="searchFilter" height="100">
<Templates>
<ItemTemplate name="searchFilter">
<Label bindId="info"/>
</ItemTemplate>
</Templates>
<ListSection>
<ListItem info:text="Value 1" backgroundColor="#ddd" />
<ListItem info:text="Value 2" backgroundColor="#ddd" />
<ListItem info:text="Value 3" backgroundColor="#ddd" />
<ListItem info:text="Value 4" backgroundColor="#ddd" />
<ListItem info:text="Value 5" backgroundColor="#ddd" />
</ListSection>
</ListView>
</HeaderView>
<Templates>
<ItemTemplate name="searchResult">
<Label bindId="title" />
</ItemTemplate>
</Templates>
<ListSection>
<ListItem title:text="Result 1" />
<ListItem title:text="Result 2" />
<ListItem title:text="Result 3" />
<ListItem title:text="Result 4" />
<ListItem title:text="Result 5" />
<ListItem title:text="Result 6" />
<ListItem title:text="Result 7" />
<ListItem title:text="Result 8" />
<ListItem title:text="Result 9" />
<ListItem title:text="Result 10" />
<ListItem title:text="Result 11" />
<ListItem title:text="Result 12" />
<ListItem title:text="Result 13" />
<ListItem title:text="Result 14" />
<ListItem title:text="Result 15" />
<ListItem title:text="Result 16" />
<ListItem title:text="Result 17" />
</ListSection>
</ListView>
</Window>
</Alloy>
Attachments
File | Date | Size |
---|---|---|
iOS Simulator Screen Shot Apr 27, 2015, 3.11.12 PM.png | 2015-04-27T09:12:07.000+0000 | 62438 |
Screen Shot 2015-04-27 at 3.11.16 PM.png | 2015-04-27T09:12:10.000+0000 | 56085 |
I am unable to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131