Bug 34207 - Xamarin Support Library v4 23.0.1-rc2 seems to be missing IOnRefreshListener type
Summary: Xamarin Support Library v4 23.0.1-rc2 seems to be missing IOnRefreshListener ...
Status: RESOLVED FIXED
Alias: None
Product: Components
Classification: Xamarin
Component: Xamarin Components ()
Version: Production (addons.xamarin.com)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jon Dick
URL:
Depends on:
Blocks:
 
Reported: 2015-09-23 11:35 UTC by Ota Mares
Modified: 2015-09-28 15:39 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:
RESOLVED FIXED

Description Ota Mares 2015-09-23 11:35:52 UTC
After updating the Xamarin Support Library v4 from the stable version 22.2.1 to the latest RC 23.0.1-rc2 we are getting following error, that prevents us from compiling the app:

ExtendedListViewRenderer.cs(45,45): Error CS0012: The type `Android.Support.V4.Widget.SwipeRefreshLayout.IOnRefreshListener' is defined in an assembly that is not referenced. Consider adding a reference to assembly `Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' (CS0012) (RebuyApp.Android)

My wild guess would be that the RC seems to be missing the corresponding class :)

Our project is based on Xamarin.Forms 1.5.0. The code affected by the issue is a custom renderer: 

using System;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
using RebuyApp.Common.Views;

[assembly: ExportRendererAttribute(typeof(ExtendedListView), typeof(RebuyApp.Android.Renderers.ExtendedListViewRenderer))]
namespace RebuyApp.Android.Renderers
{
    public class ExtendedListViewRenderer : ListViewRenderer
    {
        protected override void OnElementChanged(ElementChangedEventArgs<ListView> e)
        {
            base.OnElementChanged(e);
            if (Control != null) {
                Control.LongClickable = false;
            }
        }
    }
}
Comment 1 Jon Dick 2015-09-28 15:39:15 UTC
Fixed in the stable release that is coming soon, thanks!