diff --git a/MvvmCross.Droid.Support.V7.RecyclerView/IMvxRecyclerAdapter.cs b/MvvmCross.Droid.Support.V7.RecyclerView/IMvxRecyclerAdapter.cs index 233266b..41274f3 100644 --- a/MvvmCross.Droid.Support.V7.RecyclerView/IMvxRecyclerAdapter.cs +++ b/MvvmCross.Droid.Support.V7.RecyclerView/IMvxRecyclerAdapter.cs @@ -22,5 +22,7 @@ public interface IMvxRecyclerAdapter ICommand ItemLongClick { get; set; } object GetItem(int position); + + int ItemTemplateId { get; set; } } } \ No newline at end of file diff --git a/MvvmCross.Droid.Support.V7.RecyclerView/MvxRecyclerAdapter.cs b/MvvmCross.Droid.Support.V7.RecyclerView/MvxRecyclerAdapter.cs index 41b1734..f96dfa5 100644 --- a/MvvmCross.Droid.Support.V7.RecyclerView/MvxRecyclerAdapter.cs +++ b/MvvmCross.Droid.Support.V7.RecyclerView/MvxRecyclerAdapter.cs @@ -155,6 +155,8 @@ public virtual object GetItem(int position) return _itemsSource.ElementAt(position); } + public int ItemTemplateId { get; set; } + protected virtual void SetItemsSource(IEnumerable value) { if (ReferenceEquals(_itemsSource, value) && !ReloadOnAllItemsSourceSets)