Forum Xamarin Xamarin.Forms

The dynamic resizing of CollectionView items doesn't work properly

PrabakaranRamasamyPrabakaranRamasamy USMember ✭✭✭

I have a list of items populated using collection view, when I click the item, it will be expanded by toggling the visibility of a label. It works properly in Android, but in iOS, height of the remaining items are wrong. Please check the below screenshots. Please suggest me if you have any workaround, otherwise I can log this as a bug in GitHub.

Tagged:

Answers

  • XamarinProblemsXamarinProblems Member ✭✭✭

    Hello @PrabakaranRamasamy, I had the same issue. Sadly i cannot give you a quick fix, but a potencial workaround, what I do is make a grid with X amount of rows, all managed with Rowheight ="Auto" and then like you show or hide elements with the IsVisible property.

    I did however have to implement page'ing then since i couldn't just add my collection to the view and the DataTemplate.
    Let me know if you find another solution :)

Sign In or Register to comment.