Implement Android single selection in CollectionView (#4651)
authorE.Z. Hart <hartez@users.noreply.github.com>
Thu, 27 Dec 2018 02:16:36 +0000 (19:16 -0700)
committerGitHub <noreply@github.com>
Thu, 27 Dec 2018 02:16:36 +0000 (19:16 -0700)
commit4bab273f46fbaa99af7430217804efe5cf1afd0f
tree52377bd612dbd2cc25f47b7f2fe7e25e7838aa1c
parentc99a4edf31fd85bc6dcdce34f1de3445f8dd09c7
Implement Android single selection in CollectionView (#4651)

* Implement Android single selection

* Fix naming conflicts with SelectionChangedEventArgs

* Split files by class; make SelectionChangedEventArgs constructors internal;
Optimizations for SelectionChangedEventArgs;
Fire selection changed event/command from property changed handler;

* Update Xamarin.Forms.Core/Items/SelectableItemsView.cs

Co-Authored-By: StephaneDelcroix <stephane@delcroix.org>
* Set default value for SelectedItemProperty

* Remove unnecessary null check

* Fix order of OnElementChanged and Setup/Teardown Element

* Fix project file weirdness
34 files changed:
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/CollectionViewGallery.cs
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/DemoFilteredItemSource.cs
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/EmptyViewGalleries/EmptyViewStringGallery.xaml.cs
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/EmptyViewGalleries/EmptyViewTemplateGallery.xaml.cs
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/EmptyViewGalleries/EmptyViewViewGallery.xaml.cs
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/ExampleTemplates.cs
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/SelectionGalleries/PreselectedItemGallery.xaml [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/SelectionGalleries/PreselectedItemGallery.xaml.cs [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/SelectionGalleries/SelectionGallery.cs [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/SelectionGalleries/SelectionModeGallery.xaml [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/SelectionGalleries/SelectionModeGallery.xaml.cs [new file with mode: 0644]
Xamarin.Forms.Controls/GalleryPages/CollectionViewGalleries/TextCodeCollectionViewGallery.cs
Xamarin.Forms.Controls/Xamarin.Forms.Controls.csproj
Xamarin.Forms.Core/Items/CollectionView.cs
Xamarin.Forms.Core/Items/SelectableItemsView.cs [new file with mode: 0644]
Xamarin.Forms.Core/Items/SelectionChangedEventArgs.cs [new file with mode: 0644]
Xamarin.Forms.Core/Items/SelectionMode.cs [new file with mode: 0644]
Xamarin.Forms.Platform.Android/CollectionView/CollectionViewRenderer.cs
Xamarin.Forms.Platform.Android/CollectionView/ItemsViewAdapter.cs
Xamarin.Forms.Platform.Android/CollectionView/ItemsViewRenderer.cs
Xamarin.Forms.Platform.Android/CollectionView/SelectableItemsViewAdapter.cs [new file with mode: 0644]
Xamarin.Forms.Platform.Android/CollectionView/SelectableItemsViewRenderer.cs [new file with mode: 0644]
Xamarin.Forms.Platform.Android/CollectionView/SelectableViewHolder.cs [new file with mode: 0644]
Xamarin.Forms.Platform.Android/CollectionView/TemplatedItemViewHolder.cs [new file with mode: 0644]
Xamarin.Forms.Platform.Android/CollectionView/TextViewHolder.cs [new file with mode: 0644]
Xamarin.Forms.Platform.Android/Xamarin.Forms.Platform.Android.csproj
Xamarin.Forms.Platform.UAP/CarouselPageRenderer.cs
Xamarin.Forms.Platform.UAP/ListViewRenderer.cs
Xamarin.Forms.Platform.UAP/PickerRenderer.cs
Xamarin.Forms.Platform.UAP/TabbedPageRenderer.cs
Xamarin.Forms.Platform.UAP/TableViewRenderer.cs
Xamarin.Forms.Platform.WPF/Renderers/PickerRenderer.cs
Xamarin.Forms.Platform.WPF/Renderers/TableViewRenderer.cs
Xamarin.Forms.Platform.WPF/Renderers/VisualMultiPageRenderer.cs