Bug 12264 - User is not able to build a Grid View application for the Android.
Summary: User is not able to build a Grid View application for the Android.
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.7.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Tom Opgenorth
Depends on:
Reported: 2013-05-16 07:29 UTC by Akhilesh kumar
Modified: 2013-05-22 12:42 UTC (History)
1 user (show)

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:

Description Akhilesh kumar 2013-05-16 07:29:00 UTC
Steps to reproduce:
1.Create a MFA Application named GridView.
2.Add the image files to the project's Resources/Drawable/ directory(optional).
3.Open the Resources/Layout/Main.axml file and insert the given code.
4.Open MainActivity.cs and insert the given code for the OnCreate() method.
5.Create a new class called ImageAdapter that subclasses BaseAdapter and enter the given code.

Actual Result:
It is giving a build error i.e parameter mismatch 
Parameter `2' is declared as type `Android.Widget.ItemEventArgs' but should be `Android.Widget.AdapterView.ItemClickEventArgs'.

Not sure how to change an Event handler. 

Below is the build output for the same:

Expected Result:
Application should be build and deploy successfully.

Environment Details:
All mac
XS 4.0.6 (build 4) - da8a8e9d08ff363c0aad90ba6c5aebfca1142a28
Mono 3.0.11 ((no/edc181c)
MFA 4.7.4-14

Note : We have use following documents for creating a grid view.
Comment 1 Jonathan Pryor 2013-05-16 14:49:49 UTC
The docs are incorrect. See the GridViewTutorial source, which uses AdapterView.ItemClickEventArgs , not ItemEventArgs :


Tom: Please correct the docs.
Comment 2 Akhilesh kumar 2013-05-22 12:42:10 UTC
An update to above issue:

As per comment1,we have applied changes in the source code and now we are able to run this application successfully on device/Emulator without giving a build error.

And the changes also has been applied to docs also,Hence marking this issue as a VERIFIED FIXED.