Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19200] Android: implement 'noresults' event on ListView

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2015-07-29T20:42:42.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 5.0.0
ComponentsAndroid
LabelsQE-Automation, listview
ReporterAlan Leard
AssigneeAshraf Abu
Created2015-07-09T22:16:58.000+0000
Updated2016-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

Comments

  1. Ashraf Abu 2015-07-28

    PR: https://github.com/appcelerator/titanium_mobile/pull/6987
  2. Ashraf Abu 2015-07-30

    PR merged.
  3. Lokesh Choudhary 2015-08-10

    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
  4. Far 2016-01-14

    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.

JSON Source