Thanks for the fix -- works fine.

Is there any help on what happened to...

listView.ItemLongClick += newEventHandler<ItemEventArgs>(
listView_ItemLongClick );

Error 2 Operator '+=' cannot be applied to operands of type
'Android.Widget.AdapterView.ItemLongClickHandler' and
'System.EventHandler<Android.Widget.ItemEventArgs>'
P:\Linen\MonoDroid\MainLine\RouteDelivery\Activities\SelectOrder.cs 95 

Error 3 Cannot implicitly convert type
'System.EventHandler<Android.Widget.ItemEventArgs>' to
'Android.Widget.AdapterView.ItemLongClickHandler'
P:\Linen\MonoDroid\MainLine\RouteDelivery\Activities\SelectOrder.cs 95


Steve Sharrock
Architecture/Design/Programming
www.sharkcode.com

-----Original Message-----
From: Jonathan Pobst [mailto:[email protected]]
Sent: Monday, October 17, 2011 12:33 PM
To: [email protected]; Discussions related to Mono for Android
Subject: Re: [mono-android] VS2010 MD 1.9.1 "aapt.exe" exited code 1 and
ItemLongClick

The aapt issue is that your directory should be called "Values-Normal" 
instead of "Values-Medium".  I have updated the error handling to properly
surface that aapt error into the IDE.

Thanks for the report!

Jonathan

On 10/17/2011 12:11 PM, Steve Sharrock wrote:
> I just downloaded and installed monoandroid-1.9.1.r2-2.msi to solve a 
> problem I was having with aapt.exe failure.
> The first thing I noticed is that I now get a compiler error on this 
> pre-existing statement:
>
> listView.ItemLongClick += newEventHandler<ItemEventArgs>( 
> listView_ItemLongClick );
>
> Error 2 Operator '+=' cannot be applied to operands of type 
> 'Android.Widget.AdapterView.ItemLongClickHandler' and 
> 'System.EventHandler<Android.Widget.ItemEventArgs>'
> P:\Linen\MonoDroid\MainLine\RouteDelivery\Activities\SelectOrder.cs 95
> 5 RouteDelivery
>
> Error 3 Cannot implicitly convert type 
> 'System.EventHandler<Android.Widget.ItemEventArgs>' to 
> 'Android.Widget.AdapterView.ItemLongClickHandler'
> P:\Linen\MonoDroid\MainLine\RouteDelivery\Activities\SelectOrder.cs 95
> 31 RouteDelivery
>
> I currently have 3 folders for Values that each contain a Styles.xml 
> file which works fine for QVGA and VGA.
>
> Values
>
> Values-large
>
> Values-small
>
> When I add Values-medium to support HVGA, I get the "aapt.exe" exited 
> code 1 message.
>
> BTW - Visual Studio Help->About shows Mono for Android 1.0 rather than 
> 1.9. I double-checked the install and ran a "repair" with no changes.
>
> http://android.xamarin.com/Releases/Mono_for_Android_1/Release_1.9.1
>
> */Steve Sharrock/*
> Architecture/Design/Programming
> www.sharkcode.com <blocked::http://www.sharkcode.com/>
>
>
> _______________________________________________
> Monodroid mailing list
> [email protected]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid


_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to