This is a migrated thread and some comments may be shown as answers.

Error using Animations

1 Answer 63 Views
ListView - Xamarin.Android
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 20 Feb 2016, 08:20 PM

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 :)

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 25 Feb 2016, 08:22 AM
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
Tags
ListView - Xamarin.Android
Asked by
Eric
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or