Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Enhancement] Horizontal ListView #1727

Closed
PureWeen opened this issue Jan 29, 2018 · 5 comments
Closed

[Enhancement] Horizontal ListView #1727

PureWeen opened this issue Jan 29, 2018 · 5 comments

Comments

@PureWeen
Copy link
Contributor

Rationale

ListView control currently can only flow items vertically. This will add the ability to flow the items horizontally.

Implementation

public enum ListViewOrientation
	{
		Vertical,
		Horizontal
	}

public static readonly BindableProperty OrientationProperty = BindableProperty.Create(nameof(Orientation), typeof(ListViewOrientation), typeof(ListView), ListViewOrientation.Vertical,
			propertyChanged: (bindable, oldvalue, newvalue) => ((ListView)bindable).InvalidateLayout());

Expected Result

Android

  • ListView.Orientation: should indicate the directions items flow

iOS

See Android

UWP

See Android

Implications for CSS

Backward Compatibility

If not specified just ensure that no behavior changes and that items by default flow vertically

Difficulty : Medium

@samhouts
Copy link
Member

Some things that might be problematic:

  1. Pull-to-refresh. Would we want to have a horizontal swipe initiate this, or just have this be unsupported?
  2. ContextActions on iOS. These are currently activated with a horizontal swipe, which will conflict with the scrolling now. Do we want to change the swipe direction? Not support it?

@jassmith
Copy link

  1. I think for now that should be unsupported

  2. We will need to change the swipe direction I think.

@weitzhandler
Copy link

weitzhandler commented Apr 9, 2018

Related #1718.

Anyway, the lack of ItemsControl and horizontal ListView is extremely painful!
Xamarin has a quirky fixation to bias everything towards mobile and completely ignore anything else. Time has passed and we want to start using Xamarin for bigger screen too, and also for desktops.
The lack of horizontal support, better keyboard and mouse control is totally annoying!

@samhouts
Copy link
Member

Since #3172 CollectionView will support Horizontal mode, is it possible that this is no longer needed as a feature of ListView?

@davidortinau
Copy link
Contributor

Closing it. As @samhouts mentioned, CollectionView handles this case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants