Example #1
0
 public MvxExpandableItemAdapter(IMvxAndroidBindingContext androidBindingContext)
 {
     BindingContext = androidBindingContext;
     HasStableIds   = true;
     _expandableGroupedItemsSourceProvider = new MvxGroupedItemsSourceProvider();
     _expandableGroupedItemsSourceProvider.Source.CollectionChanged    += SourceOnCollectionChanged;
     _expandableGroupedItemsSourceProvider.ChildItemsAdded             += SourceItemChildChanged;
     _expandableGroupedItemsSourceProvider.ChildItemsRemoved           += SourceItemChildChanged;
     _expandableGroupedItemsSourceProvider.ChildItemsCollectionCleared += (group) => base.NotifyDataSetChanged();
     _expandableGroupedItemsSourceProvider.ItemsMovedOrReplaced        += () => base.NotifyDataSetChanged();
 }
 public MvxExpandableItemAdapter(IMvxAndroidBindingContext androidBindingContext)
 {
     BindingContext = androidBindingContext;
     SetHasStableIds(true);
     _expandableGroupedItemsSourceProvider = new MvxGroupedItemsSourceProvider();
     _expandableGroupedItemsSourceProvider.Source.CollectionChanged    += SourceOnCollectionChanged;
     _expandableGroupedItemsSourceProvider.ChildItemsAdded             += SourceItemChildChanged;
     _expandableGroupedItemsSourceProvider.ChildItemsRemoved           += SourceItemChildChanged;
     _expandableGroupedItemsSourceProvider.ChildItemsCollectionCleared += (group) => base.NotifyDataSetChanged();
     _expandableGroupedItemsSourceProvider.ItemsMovedOrReplaced        += () => base.NotifyDataSetChanged();
     GroupSwipeItemPinnedStateController = new SwipeItemPinnedStateControllerProvider()
     {
         UniqueIdProvider = new GroupMvxItemUniqueIdProvider(this)
     };
     ChildSwipeItemPinnedStateController = new SwipeItemPinnedStateControllerProvider()
     {
         UniqueIdProvider = new GroupChildMvxItemUniqueIdProvider(this)
     };
 }
Example #3
0
 public MvxRecyclerViewItemsSourceBridgeGroupingDecorator(
     IMvxRecyclerViewItemsSourceBridge decoratedItemsSourceBridge)
 {
     _decoratedItemsSourceBridge = decoratedItemsSourceBridge;
     _groupedItemsConverter      = new MvxGroupedItemsSourceProvider();
 }