-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] [iOS] RefreshView draws behind CollectionView Header #8282
Comments
Same issue here on iOS. CollectionView with Header and RefreshView. |
I think the proper wording should be Header drawn above refreshview. |
What is the progress of this issue? My project can not be completed because of this bug |
Same problem here, it makes space for activity indicator on the top of all, but it appears ignoring the header. |
I am also experiencing this in Since the point of using Header is for above-collection-view-cells content (per Jason Smith's Evolve 2016 talk), and because that implicitly suggests that CollectionView will be used as the root element of a page, then I would expect RefreshView's ActivityIndicator control to render above the CollectionView Header (above (y-axis) the outermost UI element of CollectionView). Issue present on both iOS and Android. My workaround will be to use an absolutely positioned ActivityIndicator of my own over (z-axis) the CollectionView to indicate loading activity. This is not ideal since I'd prefer to maintain UX consistency by taking advantage of RefreshView, but in its current rendering implementation, I won't be able to do that. |
I'll try to take a look at the existing renderer, make a fix, and submit a PR. |
Because I needed this to work, I came up with a workaround that does the job, at least for my project. It involves replicating the RefreshViewRenderer, adding some Xamarin Forms internal helper methods (just a few, really) and adding one line to fix it. I didn't really have the time to investigate all the layouting that happens here, I suspect some Autolayout constraints. Here is the gist of my workaround Hope it helps |
Hi everyone, any soultion here? I got the same issue. |
Same here today, it looks just as if the RefreshView is being added to the main CollectionView content and not including the Header above it. |
Same here! Funny that after any minor change and Hot Reload it renders the header right. |
Same here with XF 4.7.0.1260. RefreshView is not usable in iOS with a Header. |
C'mon guys, we can have this fixed before MAUI, can't we? |
Having the Same problem. Xamarin.Forms 4.8.0.1560 |
This is kind of annoying. Is there a workaround at least? |
Hi, any update? |
Same problem, please fix it. I can't use CollectionView with header and still using ListView!!!! Please prioritize!! @jsuarezruiz Please prioritize this bug, is very blocker, i can't use CollectionView! Thanks!! |
Thanks! This is a workaround. it really works! |
How is this not fixed yet? Would really like to start using collectionview any time soon. |
@Outtake same here, doesn't work for me too. |
@jsuarezruiz @hartez @samhouts i can't use CollectionView with header with this bug!! Please give also only a feedback. Thanks! Collectionview is great! I love horizontal, grid, vertical layout all into one API 😃 |
The issue will be fixed by #13773 |
@jsuarezruiz thanks |
@jsuarezruiz |
Thanks @jsuarezruiz! |
Is this bug solved? I'm having the same problem |
@matteovelati yes there is a pullrequest, thanks @jsuarezruiz, but must be added to a new xamarin.forms' release. |
@giuseppenovielli is there a way to include the fix in my project in the meanwhile? |
@matteovelati check this pullrequest https://github.com/xamarin/Xamarin.Forms/pull/13773/files Clone Xamarin.Forms github project and edit manually files update by pullrequest Use your Xamarin.Forms local clone, with bug fixed to build your app. |
Description
When using a
RefreshView
and wrap aCollectionView
with header in it, theRefreshView
draws behind theCollectionView
header on iOS.This leads to unwanted behaviour, for instance:
CollectionView
in some cases scrolls out of screen bounds (as it scrolls up too far after refreshing).Steps to Reproduce
I just re-used and adjusted the Xamarin.Forms
CollectionView
Demo to reproduce the issue.Expected Behavior
The
RefreshView
should draw above theCollectionView
header.Actual Behavior
The
RefreshView
draws behind theCollectionView
header on iOS.Basic Information
Screenshots
The screencasts were made on Emulators (iPhone 8 iOS13, Google Nexus 5X Android 8.1).
iOS
Android
Reproduction Link
CollectionViewHeader.zip
The text was updated successfully, but these errors were encountered: