Bug 18640 - View.CanScroll(Horizontally|Vertically) incorrect parameter type
Summary: View.CanScroll(Horizontally|Vertically) incorrect parameter type
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.13.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2014-03-28 22:43 UTC by Jérémie Laval
Modified: 2014-06-03 10:04 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Jérémie Laval 2014-03-28 22:43:14 UTC
http://developer.android.com/reference/android/view/View.html#canScrollVertically(int)
http://developer.android.com/reference/android/view/View.html#canScrollHorizontally(int)

The documentation read as left/top for a negative integer value and right/bottom for a positive one. We bind this to FocusSearchDirection which has no equivalent meaning.
Comment 1 Ram Chandra 2014-03-31 09:11:02 UTC
I have checked this issues and I am able to reproduce this issue.

I have check this issue on "Assembly browser" and I observed that in android documentation  "canScrollVertically()" and "canScrollHorizontally()" takes integer type input parameter and read as left/top for negative integer and right bottom for positive one, but in xamarin, I observed that for "canScrollVertically()" and "canScrollHorizontally()" methods takes "Enum" type input parameter i.e.  "FocusSearchDirection".

I have also observed that the values of  "FocusSearchDirection" enum is not negative integer. It is positive integer. Values of "FocusSearchDirection" enum are:
                Backward = 1,
		Down = 130,
		Forward = 2,
		Left = 17,
		Right = 66,
		Up = 33

Screencast: http://www.screencast.com/t/Hakx8MCAA

Environment :

Mac OS X 10.7.5
Xamarin Studio: 4.2.3 (build 60)
Xamarin.Android: 4.12.1 (Trial Edition)

Build Information
Release ID: 402030060
Git revision: 30c4afc300c2a39ec5300851357ce02e49dd217e
Build date: 2014-03-05 22:09:33+0000
Xamarin addins: f8a9589b57c2bfab2ccd73c880e7ad81e3ecf044
Comment 2 Atsushi Eno 2014-04-22 07:01:22 UTC
It is now fixed for monodroid 4.14. Thanks for the report.

[master 2d3c575]
Comment 3 Ram Chandra 2014-06-03 10:04:22 UTC
I have checked this issue with following builds

Mac OS X 10.8.5
XS: 5.1 (build 326)
Xamarin.Android: 4.14.0 

Build Information
Release ID: 501000326
Git revision: 836ac54a5a3a3e146b915eec1f5dd01feb843532
Build date: 2014-06-03 04:41:48-04
Xamarin addins: b68a34ef2fc4c46b045dc38e26fb199bfe1b201d


I observed that now "canScrollVertically()" and "canScrollHorizontally()" takes integer type input parameter.

Screencast : http://www.screencast.com/t/JLTbDo65V

This issue has been fixed. Hence closing this issue.