[ALOY-1220] Widgets can not be used in ListView Templates
| GitHub Issue | n/a |
| Type | Improvement |
| Priority | Medium |
| Status | Resolved |
| Resolution | Duplicate |
| Resolution Date | 2018-06-27T08:17:52.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Tooling, Widgets, XML |
| Labels | n/a |
| Reporter | Bert Grantges |
| Assignee | Feon Sua Xin Miao |
| Created | 2014-08-07T03:20:19.000+0000 |
| Updated | 2018-06-27T08:17:53.000+0000 |
Description
When leveraging templates in a ListView, the alloy compiler fails when trying to compile an ItemTemplate that contains a Widget tag.
Attachments
Note: Due to SDK limitations, this will work only for Widgets exposing one of the supported View classes, see list at http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.ListItem
The deeper problem is that even if your widget's top level view is a ListItem. You still cannot have Widget tags inside of that list item. This still crashes the compiler. Thus you can't use widgets in a ListView :( which limits the re-usability of your widget functionality.
Fixed as part of ALOY-1518 and related tickets for SDK 7.4.0.