Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19342] Android: scrollend event not firing on ScrollView

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2015-08-19T01:53:53.000+0000
Affected Version/sRelease 3.5.1, Release 4.0.0, Release 4.1.0
Fix Version/sn/a
ComponentsAndroid
LabelsAndroid, parity
Reporter Ricardo Ramirez
AssigneeEric Merriman
Created2015-08-11T20:31:48.000+0000
Updated2017-03-23T21:34:40.000+0000

Description

Issue Description

scrollEnd/scrollend event is not getting fired in a ScrollView for Andrioid. On iOS is working perfectly. This issue was tested on Titanium SDK 3.5.1.GA, 4.0.0.GA, 4.1.0.GA classic version and Alloy

Expected behavior

The ScrollEnd event must be fired at the bottom or top of the ScrolView after scroll in Android.

Steps to Replicate:

1. Grab sample code and throw it to app.js 2. Run the app for android 3. Scroll to the bottom of the view 4. The event is not getting fired to show the alert text

Test Case


var win = Ti.UI.createWindow({
  backgroundColor: 'white',
});

var scrollView = Ti.UI.createScrollView();

var label =Ti.UI.createLabel();

label.text="When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.When you call the API to retrieve a report, you use the ids parameter to indicate whether you are retrieving a channel report or a content owner report. Your request also specifies the metrics that the report will include, the dimensions that will be used to aggregate data in the report, and the filters that will be used to limit the data that the API returns.";
label.color="black";

scrollView.add(label);

scrollView.addEventListener('scrollEnd', function(){
	alert('scrollEnd');
});

win.add(scrollView);
win.open();

Comments

  1. Hieu Pham 2015-08-11

    According to the doc, "scrollend" is not supported for Ti.UI.ScrollView: http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ScrollView-event-scrollend Looking at the code, Android currently does not support this event.
  2. Lee Morris 2017-03-23

    Closing ticket as invalid with reference to the previous comments.

JSON Source