Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Clipping in CustomControl within SwipeView RightItems in CollectionView on Android #19920

Open
Ahamed-Ali opened this issue Jan 16, 2024 · 2 comments
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@Ahamed-Ali
Copy link

Description

We have identified a critical issue in our current implementation involving a CollectionView with loaded items, where the ItemTemplate includes a SwipeView with right items containing a custom control (GraphicsView) drawn from an IDrawable. The problem arises when applying the clip property within the custom control.

Upon deploying the CollectionView on Android, we have observed that during the initial swipe right, only one drawn view is displayed, while the others remain hidden. However, on the second swipe right, all views are properly rendered.

After a thorough investigation, we have determined that the clipping inside the custom control is causing this anomaly. Without the clipping, the behavior is as expected.

This issue is of high priority, and we urgently need a resolution to ensure a seamless user experience. Please review the attached video for a visual representation of the problem.

Your prompt attention to this matter is greatly appreciated, and we look forward to a quick and effective solution.

We have attached the video for your reference.

Android :

ClippingIssueAndroid.mp4

Steps to Reproduce

  1. Obtain the sample from the given repository and deploy it.
  2. you can observe that during the initial swipe right, only one drawn view is displayed, while the others remain hidden. However, on the second swipe right, all views are properly rendered.
  3. This is the bug.

Link to public reproduction project repository

https://github.com/Ahamed-Ali/CustomControlClipping

Version with bug

8.0.5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 11

Did you find any workaround?

By putting each CustomControl instance inside a separate grid, works fine

`
<local:CustomControl Grid.Row="0" Grid.Column="1"
MinimumHeightRequest="60" MinimumWidthRequest="60">

                                            </local:CustomControl>
                                        </Grid>`

Relevant log output

No response

@Ahamed-Ali Ahamed-Ali added the t/bug Something isn't working label Jan 16, 2024
@samhouts samhouts added platform/android 🤖 area-controls-collectionview CollectionView, CarouselView, IndicatorView labels Jan 31, 2024
@XamlTest XamlTest added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Feb 23, 2024
@XamlTest
Copy link
Collaborator

Verified this on 8.0.6. Repro on Android 14.0-API34, not repro on iOS 17.2 with below Project:
ClippingIssue.zip

@MattePozzy
Copy link

Any news on this? Has been open for 5 months but still no fix?
Thank you.

@jsuarezruiz jsuarezruiz added this to the Backlog milestone Jun 4, 2024
@samhouts samhouts removed s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 3, 2024
@samhouts samhouts added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants