[ALOY-843] ListView/ListSection: Support new API elements in XML
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-08-05T20:43:08.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.3.0, 2013 Sprint 23 |
Components | XML |
Labels | qe-manualtest |
Reporter | Benjamin Hatfield |
Assignee | Tony Lukasavage |
Created | 2013-10-10T21:11:30.000+0000 |
Updated | 2014-08-05T20:43:08.000+0000 |
Description
For Ti SDK 3.2.0, there are some additional features as View proxy properties for ListView and ListSection that can be implemented in XML markup.
Both ListSection and ListView support headerView and footerView. Works on both Android and iOS.
ListView also has a pullView and searchView (like headerPullView and search for TableView). iOS only for now. This PR adds support for the searchView property on Android: https://github.com/appcelerator/titanium_mobile/pull/4774. Note that on Android it supports both a UI.SearchBar and UI.Android.SearchView.
I updated the ListView guide with some examples: https://wiki.appcelerator.org/display/guides2/ListViews#ListViews-AdvancedCustomizations
Here is the iOS doc PR with the changes:
https://github.com/appcelerator/titanium_mobile/pull/4426
[~tlukasavage] I am thinking something along the lines of this:
Updated with TableView included to show the subtle differences between the new and old APIs
PR: https://github.com/appcelerator/alloy/pull/267
test apps
https://github.com/appcelerator/alloy/tree/master/test/apps/ui/lists_proxy_properties
https://github.com/appcelerator/alloy/tree/master/test/apps/advanced/proxy_property_requires
testing
Run both test apps for all supported platforms. Ensure that there are no compile time or runtime errors. Specific instructions for each app are below. Be aware that some proxy properties are platform-specific, so consider that when testing. For app #1, only iOS and Android 3.0+ (API 11+) are supported. Make sure that all proxy properties are all present in both the TableView and ListView tabs of the app, except where TIMOB issues are noted in the markup comments. The proxy properties should include: * headerView & footerView for both the table/list and its section * pullView/headerPullView * searchBar/searchView For app #2, simply make sure that the various proxy properties show up when the UI is rendered.Verified working as expected following https://github.com/appcelerator/alloy/tree/master/test/apps/ui/lists_proxy_properties and https://github.com/appcelerator/alloy/tree/master/test/apps/advanced/proxy_property_requires samples TiSDK 3.2.0.v20131127194046 CLI 3.2.0-beta Alloy 1.3.0-beta Titanium Studio 3.2.0.201311262027 iPad OS 7 and simulator Android Google Nexus Galaxy 4.3 MobileWeb (for sample #2) Closing.