-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open up the CollectionView implementation on Android #6090
Comments
@krdmllr We're definitely planning to open these up before CollectionView is stable. Any API that we haven't opened yet is subject to change significantly as we continue development. @hartez Are any of these ready to be opened yet, with the caveat that this preview API may not even exist as new builds are released? Thanks! |
We can consider anything and everything for opening up, with the caveat that anything public may change before we take this out of Preview. But we're being very careful about how we open things up because once an API becomes public, changing it becomes a problem. @krdmllr Can you be more specific about which classes you're looking to use? I don't want to blindly mark everything |
Hi, first of all thank you for the fast and really nice response! To give you an insight on my specific use case: I try to implement a staggered collection view with 2 columns where some items span trough both columns horizontally. Creating a staggered collection view was really easy because you can override SelectLayoutManager like this:
To get an item that spans trough all columns, the internet tells me that I should do this:
Which is the part where I can`t proceed without basicly copying the complete folder into my sourcee code because I cant extend the ItemsViewAdapter. Edit: The complete code is here btw: https://github.com/krdmllr/Xappy/blob/master/Xappy/Xappy.Android/Renderers/XappyCollectionViewRenderer.cs |
Same needs here, because I encountered this RecyclerView's bug |
Thanks for this suggestion! As Xamarin.Forms is now in maintenance mode, this will not happen anymore for Xamarin.Forms. We're only adding bugfixes and stability fixes. If this is still important to you, make sure to check the .NET MAUI repo and see if it's already on the roadmap. If not, feel free to open a discussion to discuss a change first or open an issue with a detailed feature request. Thanks! |
Pretty much everything in the CollectionView Android implementation is internal and/or sealed. Making these classes accessible would give more room for customizations.
I'm talking about these classes: https://github.com/xamarin/Xamarin.Forms/tree/master/Xamarin.Forms.Platform.Android
I would like to override the ItemsViewAdapter OnBindViewHolder method but in order to do that I basicly have to copy the whole folder in my solution to use my own adapter. If the classes would be public, I could extend from the ItemsViewAdapter and override the required methods in the ItemsViewRenderer.
The text was updated successfully, but these errors were encountered: