Error using Animations

2 posts, 0 answers
  1. Eric
    Eric avatar
    16 posts
    Member since:
    May 2014

    Posted 20 Feb Link to this post

    Hi,

    I receive the following error:

    System.TypeLoadException: Could not load type 'Com.Telerik.Widget.List.SlideItemAnimator' from assembly 'Telerik.Xamarin.Android.List, Version=2016.1.204.0, Culture=neutral, PublicKeyToken=null'.

    I've included the most recent assemblies of version 2016.1.204.0:

    - Android.Common
    - Android.Data
    - Android.List

    And:
    - Xamarin.Android.Support.Design
    - Xamarin.Android.Support.v4
    - Xamarin.Android.Support.v7.AppCompat
    - Xamarin.Android.Support.v7.RecyclerView

    public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
    {
        _view = base.OnCreateView(inflater, container, savedInstanceState);
     
        _viewModel = (ItemListViewModel)base.ViewModel;
     
        var itemListDataAdapter = new itemListItemDataAdapter();
        var itemListView = _view.FindViewById<RadListView>(Resource.Id.itemListView);
        itemListView.SetAdapter(itemListDataAdapter);
         
        //FadeItemAnimator fadeItemAnimator = new FadeItemAnimator();
        //itemListView.SetItemAnimator(fadeItemAnimator);
        SlideItemAnimator slideItemAnimator = new SlideItemAnimator();
        itemListView.SetItemAnimator(slideItemAnimator);
     
        return _view;
    }

     

    Linker is set to 'None'.

    Compile Using Android Version: 23

    Minimum Android Target: 15

    Target Android version: 23

     

    Can anyone help me with this error? Many thanks in advance :)

  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 25 Feb Link to this post

    Hello Eric,

    Thank you for contacting us.

    Here
    's the list of required references for using our Android components with Xamarin. Make sure your projects have the correct version of the support libraries - namely 23.0.1.3. If you are using a newer version of the support library (23.1.1) you may experience the described issue due to changes that are introduced with that version of the support library.

    The latest Xamarin Forms package still has the requirement to use version 23.0.1.3 of the support libraries which prevents us from updating our code with the next version (23.1.1).

    Let us know if you need further assistance.

    Regards,
    Todor
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top