Search code examples
c#.netxamlxamarinmaui

.NET MAUI Soft keyboard wipes out half the page on android why?


when soft keyboard pops up, it wipes out half the page like so on android 13. Keyboard wipes out half the page

i expect the keyboard to pop up and down without affecting the page . I've tried hiding my collectionView when keyboard pops up and Unhide it when keyboard goes down but it doesn't work very well. it only gets fixed when somehow it gets reloaded, like if i scroll the wiped section out of view and i scroll it back in

**UPDATE the problem was collectionView's ItemsLayout="HorizontalList" and my project was on .net6 (didnt have any issues with the default ItemsLayout default which is VerticalList) but i upgraded my project to .net7 by going into csproj file in my project changing any reference to net6 with net7 hope it helps someone in the future!


Solution

  • As i've explained in my post :

    The problem was collectionView's ItemsLayout="HorizontalList" and my project was on .net6 (didnt have any issues with the default ItemsLayout default which is VerticalList).

    I fixed this by upgrading my project to .net7, by going into csproj file in my project changing any reference to net6 with net7.

    Hope it helps someone in the future!