Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Horizontal ListView #1727

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

Comments

Projects
None yet
5 participants
@PureWeen
Copy link
Contributor

PureWeen commented Jan 29, 2018

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

@pauldipietro pauldipietro added this to New in Triage Jan 29, 2018

@hartez hartez removed this from New in Triage Jan 29, 2018

@davidortinau davidortinau added this to Backlog in Enhancements Jan 29, 2018

@samhouts

This comment has been minimized.

Copy link
Member

samhouts commented Jan 29, 2018

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

This comment has been minimized.

Copy link
Contributor

jassmith commented Jan 31, 2018

  1. I think for now that should be unsupported

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

@weitzhandler

This comment has been minimized.

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

This comment has been minimized.

Copy link
Member

samhouts commented Jun 28, 2018

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

@davidortinau

This comment has been minimized.

Copy link
Contributor

davidortinau commented Oct 18, 2018

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

Enhancements automation moved this from Backlog to Done Oct 18, 2018

@samhouts samhouts removed this from Done in Enhancements Nov 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.