[TIMOB-19200] Android: implement 'noresults' event on ListView
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-07-29T20:42:42.000+0000 |
Affected Version/s | Release 4.1.0 |
Fix Version/s | Release 5.0.0 |
Components | Android |
Labels | QE-Automation, listview |
Reporter | Alan Leard |
Assignee | Ashraf Abu |
Created | 2015-07-09T22:16:58.000+0000 |
Updated | 2016-01-14T20:31:07.000+0000 |
Description
On the ListView events, there is a 'noresults' event for iOS that is not implemented for Android. Please implement this on Android as well
PR: https://github.com/appcelerator/titanium_mobile/pull/6987
PR merged.
Verified the implementation. When no matching results are found in search the "noresults" eventlistener is fired. Closing. Environment: Appc Studio : 4.2.0.201508062204 Ti SDK : 4.2.0.v20150710092422 (4.2.0 is technically 5.0 here) Ti CLI : 4.1.4 Alloy : 1.6.2 MAC Yosemite : 10.10.4 Appc NPM : 4.1.0 Appc CLI : 4.1.0 Node: v0.10.37 Environment : preproduction Nexus 5 - Android 5.1.1
I really expected this functionality. Thank you! But it is not possible to catch moment when result will become non empty. IMHO more universal way is to add *searchResult* property to ListView. So we can listen *onChange* event from *SearchView* and use search result as we want.