question

GaneshGebhard-8778 avatar image
0 Votes"
GaneshGebhard-8778 asked GaneshGebhard-8778 commented

Xamarin.Forms - reordering Sharpnado.Forms.HorizontalListView goes wrong

Hey!

I have a Xamarin.Forms app which uses Sharpnado.Forms.HorizontalListView to show frames and enables the user to drag and drop these frames. It works perfectly fine, but now I want to add something extra and that is causing some issues.

When the user taps on a frame, the screen should split in two halves: the HorizontalListView on one half and a window with information on the other side.
When I start the app where the HorizontalListView is fullscreen, everything works. When I start the app where the HorizontalListView is on one half only, everything works again.
The problem: what I do now is simply using a grid and update the columnspan on tap. So the columnspan starts with 2, but when I tap a frame it turns to 1 so that the HorizontalListView ends up at one half. The frames however are not ordered anymore, they are simple squeezed to together to fit the half of the window (so the padding in between is gone for some reason).

I use this to switch to a split screen:
136481-image.png

I can not show a demo and I think the code here is not really needed here, but I can visualize it.

Normal window:
136398-image.png

Split window (what is expected):
136330-image.png

Split window (what actually happens):
136471-image.png

Does someone know why this happens and how to solve it?

If something is unclear, please let me know.

dotnet-xamarinforms
image.png (5.5 KiB)
image.png (44.0 KiB)
image.png (50.8 KiB)
image.png (40.1 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I notice your screenshot have a windows title, do you test it in the UWP? If so, I find the Sharpnado.Forms.HorizontalListView plugin just support the Android and iOS. it is not support UWP to achieve it. This is a third-part plugin, you can open a issue in the Github: https://github.com/roubachof/Sharpnado.HorizontalListView/issues

0 Votes 0 ·

Oh sorry, I say Window but I mean 'Screen'. This is on Android only actually.

0 Votes 0 ·

0 Answers