xamarin/Xamarin.Forms

[Bug] Some views not visible when swiping back and forth through CarouselView containing a FlexLayout

Aperta

#8956 aperta il 18 dic 2019

 (1 commento) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
a/bindablelayouta/carouselviewa/flexe/5 :clock5:help wantedinactivep/Androidp/iOS 🍎t/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I have a page with a CarouselView containing a FlexLayout DataTemplate. When I swipe through all the pages of the carousel view and then go back to the beginning, the views on the first and last page are no longer visible. Occurs on Android only.

Workaround

I found that if you nest the FlexLayout in a Grid the pages will stay visible.

Expected Behavior

When swiping back and forth through Carousel Views all views should reappear correctly.

Actual Behavior

Views do not reappear.

Basic Information

  • Version with issue: Xamarin.Forms 4.4.0
  • Platform Target Frameworks:
    • Android: 9.0

Reproduction Link

CarouselBugsRepro.zip

Guida contributor